Simple settings library for easily accessable configurations
- Publish migrations
php artisan vendor:publish livecontrols.easy_settings.migrations- Migrate
php artisan migrateThis will set a specific value (can be any json compatible value) to a specific key. This will also update a value if it already exists.
\LiveControls\EasySettings\EasySettings::set('key', 'value');This will get a specific value and stores it to the cache if set.
\LiveControls\EasySettings\EasySettings::get('key', 'default', 120); //Will return a string 'default' if value can't be found and stores it for 120 secondsThis will remove the setting with the specific key from the cache.
\LiveControls\EasySettings\EasySettings::forget('key');This will delete the setting with the specific key from the database and cache.
\LiveControls\EasySettings\EasySettings::delete('key');