Make use of some settings #136
This commit is contained in:
1 parent
b7a880d66a
commit
8315383958
5 files changed
+26
-17
No files matched your search
@@ -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