20 lines
422 B
PHP
20 lines
422 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\Settings;
|
|
use App\Repositories\Interface\SettingInterface;
|
|
|
|
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);
|
|
}
|
|
}
|