Skip to content

Commit 9a177b0

Browse files
authored
Change to hyphenate prefixes and cookie names (#6636)
1 parent 96164d1 commit 9a177b0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

config/cache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@
103103
|
104104
*/
105105

106-
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
106+
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel')).'-cache-'),
107107

108108
];

config/database.php

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

148148
'options' => [
149149
'cluster' => env('REDIS_CLUSTER', 'redis'),
150-
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
150+
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel')).'-database-'),
151151
'persistent' => env('REDIS_PERSISTENT', false),
152152
],
153153

config/session.php

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

130130
'cookie' => env(
131131
'SESSION_COOKIE',
132-
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
132+
Str::slug(env('APP_NAME', 'laravel')).'-session'
133133
),
134134

135135
/*

0 commit comments

Comments
 (0)