Files
boursecu_server/app/Services/ConfigService.php
T
2026-05-24 13:56:33 +03:30

19 lines
382 B
PHP

<?php
namespace App\Services;
use Illuminate\Support\Facades\Http;
use League\Flysystem\Config;
class ConfigService
{
public static function Config($name)
{
return Setting::where('key',$name)->first()->value ?? false;
}
public static function UpdateConfig($name,$value)
{
return Setting::where('key',$name)->update(['value'=>$value]);
}
}