Skip to content

Commit 693bef8

Browse files
authored
Change to hyphenate prefixes and cookie names (#56172)
* Change to hyphenate prefixes * Use `Str::snake()` as intended
1 parent fa6f6e7 commit 693bef8

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((string) env('APP_NAME', 'laravel'), '_').'_cache_'),
106+
'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'),
107107

108108
];

config/database.php

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

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

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((string) env('APP_NAME', 'laravel'), '_').'_session'
132+
Str::snake((string) env('APP_NAME', 'laravel')).'_session'
133133
),
134134

135135
/*

0 commit comments

Comments
 (0)