config service for show liman price
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
|
||||
namespace App\Services;
|
||||
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use League\Flysystem\Config;
|
||||
use App\Models\Setting;
|
||||
|
||||
class ConfigService
|
||||
{
|
||||
public static function Config($name)
|
||||
public function Config($name)
|
||||
{
|
||||
return Setting::where('key',$name)->first()->value ?? false;
|
||||
return Setting::where('key', $name)->value('value') ?? false;
|
||||
}
|
||||
public static function UpdateConfig($name,$value)
|
||||
|
||||
public function UpdateConfig($name, $value)
|
||||
{
|
||||
return Setting::where('key',$name)->update(['value'=>$value]);
|
||||
return Setting::where('key', $name)->update(['value' => $value]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user