This commit is contained in:
tanch0
2024-06-21 13:29:04 +05:45
parent 5b3c44aa33
commit 25760ad989
50 changed files with 1180 additions and 111 deletions

View File

@ -0,0 +1,9 @@
<?php
namespace App\Repositories\Interface;
interface PopupInterface
{
public function create(array $popupDetail);
public function update($popupId, array $newDetails);
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Repositories;
use App\Models\Popups;
use App\Repositories\Interface\PopupInterface;
class PopupRepository implements PopupInterface
{
public function create(array $popupDetail)
{
Popups::create($popupDetail);
}
public function update($popupId, array $newDetails)
{
return Popups::where('id', $popupId)->update($newDetails);
}
}