mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-14 17:25:01 +00:00
added get_settings_in_json helper
This commit is contained in:
@@ -38,6 +38,18 @@ function get_setting($setting)
|
||||
return Setting::find($setting)->value ?? null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all app settings and return them as json
|
||||
*/
|
||||
function get_settings_in_json()
|
||||
{
|
||||
return json_decode(
|
||||
Setting::all()
|
||||
->pluck('value', 'name')
|
||||
->toJson()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create paragraph from text
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user