You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The set method is used to set a value in the settings
useKolirt\Settings\Facades\Setting;
Setting::set('string', 'value');
Setting::set('array', [0, 1, 2]);
Setting::set('array.0', 'new value with index 0');
all
The all method is used to get all settings
useKolirt\Settings\Facades\Setting;
Setting::all();
/** * Returns * * [ * 'string' => 'value', * 'array' => ['new value with index 0', 1, 2] * ] */
get
The get method is used to get a value from the settings
useKolirt\Settings\Facades\Setting;
Setting::get('string'); // 'value'
Setting::get('array'); // ['new value with index 0', 1, 2]
Setting::get('array.0'); // 'new value with index 0'// or via helpersetting('string'); // 'value'setting('array'); // ['new value with index 0', 1, 2]setting('array.0'); // 'new value with index 0'
delete
The delete method is used to delete a value from the settings
useKolirt\Settings\Facades\Setting;
Setting::delete('string');
Setting::delete('array'); // delete all array values
Setting::delete('array.0'); // delete array value with index 0