tahirrasheed208/laravel-settings is a Laravel package for store your application settings.
It currently has 2 GitHub stars and 1.048 downloads on Packagist (latest version 3.2.0).
Install it with composer require tahirrasheed208/laravel-settings.
Discover more Laravel packages by tahirrasheed208
or browse all Laravel packages to compare alternatives.
Last updated
This package allows you to save settings in DB & Cache. You can use helper function to get settings value anywhere within laravel.
Run the following command:
composer require tahirrasheed208/laravel-settings
Publish config file.
php artisan vendor:publish --provider="TahirRasheed\LaravelSettings\SettingsServiceProvider" --tag=settings-config
You need to publish the migration to create the media table:
php artisan vendor:publish --provider="TahirRasheed\LaravelSettings\SettingsServiceProvider" --tag=settings-migration
After that, you need to run migrations.
php artisan migrate
You can change the options of your app from config/settings.php file
setting()->get('foo');
setting()->get('foo', 'default');
setting()->put('foo', 'bar');
setting()->delete('foo');
Setting::get('foo');
Setting::get('foo', 'default');
Setting::put('foo', 'bar');
Setting::delete('foo');
./vendor/bin/phpunit
Please see Releases for more information what has changed recently.
Pull requests are more than welcome. You must follow the PSR coding standards.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see LICENSE for more information.