Make use of some settings #136
This commit is contained in:
@@ -23,4 +23,8 @@ public static function allKeyValue(): array
|
||||
{
|
||||
return self::query()->pluck('value', 'key')->toArray();
|
||||
}
|
||||
|
||||
public static function get(string $key): string {
|
||||
return Setting::where('key', $key)->value('value');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user