Wallogit.com
2017 © Pedro Peláez
Prepare app configs
composer require geeksdevelop/cacheconfig
Add the package to your application service providers in config/app.php file., (*1)
'providers' => [
/*
* Package Service Providers...
*/
Geeksdevelop\Cacheconfig\CacheConfigServiceProvider::class,
],
Publish the migration to your application. Run these commands inside your terminal., (*2)
php artisan vendor:publish --provider="Geeksdevelop\Cacheconfig\CacheConfigServiceProvider"
You can configure the package to use a custom TABLE where the configuration data, the KEY of the cache and the FILTERS will be stored for the query of the data., (*3)
/*
|--------------------------------------------------------------------------
| Name of the configuration table
|--------------------------------------------------------------------------
*/
'table' => 'settings',
/*
|--------------------------------------------------------------------------
| Cache key name
|--------------------------------------------------------------------------
*/
'key' => 'env',
/*
|--------------------------------------------------------------------------
| Filters search
|--------------------------------------------------------------------------
*/
'filters' => [
// ['id', '=', 1]
],