added liman service
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?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]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user