This repository has been archived by the owner on Jun 26, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
How to Use it ?
Antoine edited this page Mar 22, 2017
·
2 revisions
Settings::set('key', 'value');
$value = Settings::get('key');
$value = Settings::get('key', 'Default Value');
Note: If key is not found (null) in cache or settings table, it will return default value
$value = settings('key');
$value = settings('key', 'default value');
Settings::forget('key');
Settings::flush();
// Change your config/settings.php
'fallback' => true
/*
* If the value with key => mail.host is not found in cache or DB of Larave Settings
* it will return same value as config::get('mail.host');
*/
Settings::get('mail.host');
Note: It will work if default value in laravel setting is not set