Downloads
Stars
Version
Persist your settings in the database
You can install the package via composer:
composer require pixeo/laravel-settings
The package will automatically register itself.
You can publish the config-file with:
php artisan vendor:publish --provider="Pixeo\Settings\SettingServiceProvider" --tag="config"
This is the contents of the published config file:
<?php
return [
/*
* The model that is used to fetch the settings
*/
'model' => Pixeo\Settings\Setting::class,
/**
* The cache key the package will use
*/
'cache_key' => 'pixeo.settings',
];
\Pixeo\Settings\Setting::create(['key' => 'foo', 'value' => 'bar']);
echo setting('foo'); // => bar
composer test
The MIT License (MIT). Please see License File for more information.