2024-06-21 07:44:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Repositories;
|
|
|
|
|
|
|
|
use App\Models\Popups;
|
2024-06-23 11:17:56 +00:00
|
|
|
use App\Repositories\PopupInterface;
|
2024-06-21 07:44:04 +00:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|