master_template/app/Repositories/SettingRepository.php

20 lines
412 B
PHP
Raw Permalink Normal View History

2024-06-18 05:46:51 +00:00
<?php
namespace App\Repositories;
use App\Models\Settings;
2024-06-23 11:17:56 +00:00
use App\Repositories\SettingInterface;
2024-06-18 05:46:51 +00:00
class SettingRepository implements SettingInterface
{
public function create(array $settingDetails)
{
Settings::create($settingDetails);
}
public function update($settingId, array $newDetails)
{
return Settings::where('setting_id', $settingId)->update($newDetails);
}
}