master_template/app/Repositories/PopupRepository.php

20 lines
392 B
PHP
Raw Normal View History

2024-06-21 07:44:04 +00:00
<?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);
}
}