Skip to content

Commit 69fc207

Browse files
refactor(config): update cache, session and database prefixes format
- Change cache, session and database prefixes to use hyphen instead of underscore - Update session cookie naming to use snake_case - Add retry_after config for mail transports - Update package.json dependencies and add $schema - Reorder services.php and update phpunit.xml test environment - Fix grammar in auth.php comment
1 parent e40d336 commit 69fc207

File tree

10 files changed

+2446
-19
lines changed

10 files changed

+2446
-19
lines changed

config/auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
| Password Confirmation Timeout
105105
|--------------------------------------------------------------------------
106106
|
107-
| Here you may define the amount of seconds before a password confirmation
107+
| Here you may define the number of seconds before a password confirmation
108108
| window expires and users are asked to re-enter their password via the
109109
| confirmation screen. By default, the timeout lasts for three hours.
110110
|

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((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
@@ -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((string) env('APP_NAME', 'laravel')).'-database-'),
151151
'persistent' => env('REDIS_PERSISTENT', false),
152152
],
153153

config/mail.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
'smtp',
8686
'log',
8787
],
88+
'retry_after' => 60,
8889
],
8990

9091
'roundrobin' => [
@@ -93,6 +94,7 @@
9394
'ses',
9495
'postmark',
9596
],
97+
'retry_after' => 60,
9698
],
9799

98100
],

config/services.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
'token' => env('POSTMARK_TOKEN'),
1919
],
2020

21+
'resend' => [
22+
'key' => env('RESEND_KEY'),
23+
],
24+
2125
'ses' => [
2226
'key' => env('AWS_ACCESS_KEY_ID'),
2327
'secret' => env('AWS_SECRET_ACCESS_KEY'),
2428
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
2529
],
2630

27-
'resend' => [
28-
'key' => env('RESEND_KEY'),
29-
],
30-
3131
'slack' => [
3232
'notifications' => [
3333
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),

config/session.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
| incoming requests. Laravel supports a variety of storage options to
1414
| persist session data. Database storage is a great default choice.
1515
|
16-
| Supported: "file", "cookie", "database", "apc",
17-
| "memcached", "redis", "dynamodb", "array"
16+
| Supported: "file", "cookie", "database", "memcached",
17+
| "redis", "dynamodb", "array"
1818
|
1919
*/
2020

@@ -97,7 +97,7 @@
9797
| define the cache store which should be used to store the session data
9898
| between requests. This must match one of your defined cache stores.
9999
|
100-
| Affects: "apc", "dynamodb", "memcached", "redis"
100+
| Affects: "dynamodb", "memcached", "redis"
101101
|
102102
*/
103103

@@ -129,7 +129,7 @@
129129

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

135135
/*

0 commit comments

Comments
 (0)