This is a minimal setting option package for Laravel. You can easily use on your project.
You can install the package via composer:
composer require amdadulhaq/setting-laravel
You can publish and run the migrations with:
php artisan vendor:publish --tag="setting-laravel-migrations"
php artisan migrate
use AmdadulHaq\Setting\Models\Setting;
Setting::set('app_name', 'Laravel');
return Setting::get('name');
// Laravel
return Setting::remove('name');
// true
or more simple ways
setting()->set('app_name', 'Laravel');
return setting()->get('app_name');
// Laravel
return setting()->remove('app_name');
// true
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.