This package creates a complete generic Settings Table and structure to be used in project. For Laravel.
otifsolutions/laravel-settings is a Laravel package for this package creates a complete generic settings table and structure to be used in project. for laravel..
It currently has 1 GitHub stars and 4.275 downloads on Packagist (latest version 1.0.1).
Install it with composer require otifsolutions/laravel-settings.
Discover more Laravel packages by otifsolutions
or browse all Laravel packages to compare alternatives.
Last updated
Install via the composer
Either run the following command in the root directory of your project:
composer require otifsolutions/laravel-settings
Then simply run migrations to run the Setting Migration
php artisan migrate
use OTIFSolutions\Laravel\Settings\Models\Setting;
Setting::set('KEY_GOES_HERE','VALUE_GOES_HERE','TYPE_GOES_HERE')
Type can be : 'STRING','BOOL','INT','JSON','DOUBLE'
Setting::get('KEY_GOES_HERE')
If Setting does not exist the system will return null
Setting::remove('KEY_GOES_HERE')
If Setting does not exist the system will return null
This pakage is used to add generic Settings structure to the Laravel project.