20 lines
382 B
PHP
20 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\Popups;
|
|
use App\Repositories\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);
|
|
}
|
|
}
|