composer require cleaniquecoders/setting
Open up config/app.php
and register CleaniqueCoders\Providers\SettingServiceProvider::class,
in providers
key.
There's a helper available in using this package
setting('key-name');
setting('key-name','items to save');
Following command will flush cached settings.
php artisan setting:flush
Pass in --truncate=1
to flush settings in database as well.