Use the APP_NAME to set the cache prefix

This commit is contained in:
Kevin MacMartin 2017-09-26 11:58:33 -04:00
parent 86c2a6e3f0
commit 87c3478c74
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,6 @@ DB_DATABASE=hypothetical
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_NAME=hypothetical
CACHE_DRIVER=file
BROADCAST_DRIVER=log
SESSION_DRIVER=file

View file

@ -86,6 +86,9 @@ return [
|
*/
'prefix' => env('CACHE_NAME', 'hypothetical'),
'prefix' => env(
'CACHE_PREFIX',
str_slug(env('APP_NAME', 'hypothetical'), '_').'_cache'
),
];