geeksdevelop / cacheconfig
Prepare app configs
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/geeksdevelop/cacheconfig
This package is not auto-updated.
Last update: 2025-09-28 07:57:52 UTC
README
Installation
composer require geeksdevelop/cacheconfig
Service Provider
Add the package to your application service providers in config/app.php
file.
'providers' => [ /* * Package Service Providers... */ Geeksdevelop\Cacheconfig\CacheConfigServiceProvider::class, ],
Publish
Publish the migration to your application. Run these commands inside your terminal.
php artisan vendor:publish --provider="Geeksdevelop\Cacheconfig\CacheConfigServiceProvider"
Set up package
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.
/* |-------------------------------------------------------------------------- | Name of the configuration table |-------------------------------------------------------------------------- */ 'table' => 'settings', /* |-------------------------------------------------------------------------- | Cache key name |-------------------------------------------------------------------------- */ 'key' => 'env', /* |-------------------------------------------------------------------------- | Filters search |-------------------------------------------------------------------------- */ 'filters' => [ // ['id', '=', 1] ],