Browse Source

Update cache prefix.

Make cache prefix like session cookie.
ThunderbirdsX3 6 years ago
parent
commit
b8120bfb55
1 changed files with 4 additions and 1 deletions
  1. 4 1
      config/cache.php

+ 4 - 1
config/cache.php

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