master_template/app/Repositories/PopupRepository.php
2024-06-23 17:02:56 +05:45

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);
}
}