Skip to content

Commit 260b9fa

Browse files
committed
Change prefix on cache and sessions to differentiate between environments.
1 parent af1853b commit 260b9fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@
9090

9191
'prefix' => env(
9292
'CACHE_PREFIX',
93-
Str::slug(config('app.name', 'laravel').'_'.config('app.env', 'local'), '_').'_cache'
93+
Str::slug(config('app.tag', 'laravel').'_'.config('app.env', 'local'), '_').'_cache'
9494
),
9595
];

config/session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126

127127
'cookie' => env(
128128
'SESSION_COOKIE',
129-
Str::slug(config('app.name', 'laravel').'_'.config('app.env', 'local'), '_').'_session'
129+
Str::slug(config('app.tag', 'laravel').'_'.config('app.env', 'local'), '_').'_session'
130130
),
131131

132132
/*

0 commit comments

Comments
 (0)