19 lines
382 B
PHP
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]);
|
|
}
|
|
}
|