Download the PHP package merodiro/settings without Composer
On this page you can find all versions of the php package merodiro/settings. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download merodiro/settings
More information about merodiro/settings
Files in merodiro/settings
Package settings
Short Description Easy global/user settings
License MIT
Homepage https://github.com/Merodiro/Settings
Informations about the package settings
settings
laravel easy key => value
global/user settings
Install
Via Composer
publish config through Optional: only if you want to edit cache configurations
Setup a Model
Usage
Set settings
creates a record if the key doesn't exist or update it if the key exists
in addition to updating the cache
Get value from settings
Returns its value if it exists or the second parameter if it doesn't exist
Delete key from settings
Remove the setting with the given key in addition to removing it from the cache
Delete all settings
Delete all the settings in addition to removing them from the cache
Get all settings
Returns all settings stored in key => value array
Artisan Commands
Cache all settings
Caches all settings for the duration that has been set in settings.php config file
you can set the duration to a high number or schedule the command to run often to get the best value of it
Clear cache for all settings
Blade Directives
Get value from blade template
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Credits
- Amr A. Mohammed
- All Contributors
License
The MIT License (MIT). Please see License File for more information.