Skip to content

Commit 62b1720

Browse files
committed
🔧 Update configs for Laravel 12
1 parent dcb5823 commit 62b1720

File tree

10 files changed

+41
-7
lines changed

10 files changed

+41
-7
lines changed

config-stubs/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
|
6666
*/
6767

68-
'timezone' => env('APP_TIMEZONE', 'UTC'),
68+
'timezone' => 'UTC',
6969

7070
/*
7171
|--------------------------------------------------------------------------

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
|
7373
*/
7474

75-
'timezone' => env('APP_TIMEZONE', 'UTC'),
75+
'timezone' => 'UTC',
7676

7777
/*
7878
|--------------------------------------------------------------------------

config/cache.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
| well as their drivers. You may even define multiple stores for the
2727
| same cache driver to group types of items stored in your caches.
2828
|
29-
| Supported drivers: "apc", "array", "database", "file", "memcached",
29+
| Supported drivers: "array", "database", "file", "memcached",
3030
| "redis", "dynamodb", "octane", "null"
3131
|
3232
*/
@@ -40,9 +40,10 @@
4040

4141
'database' => [
4242
'driver' => 'database',
43-
'table' => env('DB_CACHE_TABLE', 'cache'),
4443
'connection' => env('DB_CACHE_CONNECTION'),
44+
'table' => env('DB_CACHE_TABLE', 'cache'),
4545
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
46+
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
4647
],
4748

4849
'file' => [

config/concurrency.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Default Concurrency Driver
8+
|--------------------------------------------------------------------------
9+
|
10+
| This option determines the default concurrency driver that will be used
11+
| by Laravel's concurrency functions. By default, concurrent work will
12+
| be sent to isolated PHP processes which will return their results.
13+
|
14+
| Supported: "process", "fork", "sync"
15+
|
16+
*/
17+
18+
'default' => env('CONCURRENCY_DRIVER', 'process'),
19+
20+
];

config/database.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636
'url' => env('DB_URL'),
3737
'database' => env('DB_DATABASE', database_path('database.sqlite')),
3838
'prefix' => '',
39+
'prefix_indexes' => null,
3940
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
41+
'busy_timeout' => null,
42+
'journal_mode' => null,
43+
'synchronous' => null,
4044
],
4145

4246
'wordpress' => [
@@ -163,6 +167,7 @@
163167
'options' => [
164168
'cluster' => env('REDIS_CLUSTER', 'redis'),
165169
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
170+
'persistent' => env('REDIS_PERSISTENT', false),
166171
],
167172

168173
'default' => [

config/filesystems.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'driver' => 'local',
3535
'root' => storage_path('app'),
3636
'throw' => false,
37+
'report' => false,
3738
],
3839

3940
'public' => [
@@ -42,6 +43,7 @@
4243
'url' => env('APP_URL').'/storage',
4344
'visibility' => 'public',
4445
'throw' => false,
46+
'report' => false,
4547
],
4648

4749
's3' => [
@@ -54,6 +56,7 @@
5456
'endpoint' => env('AWS_ENDPOINT'),
5557
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
5658
'throw' => false,
59+
'report' => false,
5760
],
5861

5962
],

config/hashing.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
'bcrypt' => [
3232
'rounds' => env('BCRYPT_ROUNDS', 12),
3333
'verify' => env('HASH_VERIFY', true),
34+
'limit' => env('BCRYPT_LIMIT', null),
3435
],
3536

3637
/*

config/logging.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
| utilizes the Monolog PHP logging library, which includes a variety
4646
| of powerful log handlers and formatters that you're free to use.
4747
|
48-
| Available Drivers: "single", "daily", "slack", "syslog",
48+
| Available drivers: "single", "daily", "slack", "syslog",
4949
| "errorlog", "monolog", "custom", "stack"
5050
|
5151
*/

config/services.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
2525
],
2626

27+
'resend' => [
28+
'key' => env('RESEND_KEY'),
29+
],
30+
2731
'slack' => [
2832
'notifications' => [
2933
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),

config/session.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
|
3333
*/
3434

35-
'lifetime' => env('SESSION_LIFETIME', 120),
35+
'lifetime' => (int) env('SESSION_LIFETIME', 120),
3636

3737
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
3838

@@ -191,7 +191,7 @@
191191
|
192192
| This option determines how your cookies behave when cross-site requests
193193
| take place, and can be used to mitigate CSRF attacks. By default, we
194-
| will set this value to "lax" since this is a secure default value.
194+
| will set this value to "lax" to permit secure cross-site requests.
195195
|
196196
| See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
197197
|

0 commit comments

Comments
 (0)