20 lines
392 B
PHP
20 lines
392 B
PHP
|
<?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);
|
||
|
}
|
||
|
}
|