Skip to content

Commit 2a3a193

Browse files
authored
Merge pull request #22 from rw4lll/laravel-compose-update-2026-02
Laravel compose update 2026 02
2 parents a4a72d7 + 8ca4594 commit 2a3a193

File tree

13 files changed

+1280
-878
lines changed

13 files changed

+1280
-878
lines changed

composer.lock

Lines changed: 1218 additions & 850 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/app.php

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

102102
'previous_keys' => [
103103
...array_filter(
104-
explode(',', env('APP_PREVIOUS_KEYS', ''))
104+
explode(',', (string) env('APP_PREVIOUS_KEYS', ''))
105105
),
106106
],
107107

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: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
| same cache driver to group types of items stored in your caches.
2828
|
2929
| Supported drivers: "array", "database", "file", "memcached",
30-
| "redis", "dynamodb", "octane", "null"
30+
| "redis", "dynamodb", "octane",
31+
| "failover", "null"
3132
|
3233
*/
3334

@@ -90,6 +91,14 @@
9091
'driver' => 'octane',
9192
],
9293

94+
'failover' => [
95+
'driver' => 'failover',
96+
'stores' => [
97+
'database',
98+
'array',
99+
],
100+
],
101+
93102
],
94103

95104
/*
@@ -103,6 +112,6 @@
103112
|
104113
*/
105114

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

108117
];

config/database.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'busy_timeout' => null,
4141
'journal_mode' => null,
4242
'synchronous' => null,
43+
'transaction_mode' => 'DEFERRED',
4344
],
4445

4546
'mysql' => [
@@ -58,7 +59,7 @@
5859
'strict' => true,
5960
'engine' => null,
6061
'options' => extension_loaded('pdo_mysql') ? array_filter([
61-
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
62+
(PHP_VERSION_ID >= 80500 ? \Pdo\Mysql::ATTR_SSL_CA : \PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
6263
]) : [],
6364
],
6465

@@ -78,7 +79,7 @@
7879
'strict' => true,
7980
'engine' => null,
8081
'options' => extension_loaded('pdo_mysql') ? array_filter([
81-
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
82+
(PHP_VERSION_ID >= 80500 ? \Pdo\Mysql::ATTR_SSL_CA : \PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),
8283
]) : [],
8384
],
8485

@@ -94,7 +95,7 @@
9495
'prefix' => '',
9596
'prefix_indexes' => true,
9697
'search_path' => 'public',
97-
'sslmode' => 'prefer',
98+
'sslmode' => env('DB_SSLMODE', 'prefer'),
9899
],
99100

100101
'sqlsrv' => [
@@ -147,7 +148,7 @@
147148

148149
'options' => [
149150
'cluster' => env('REDIS_CLUSTER', 'redis'),
150-
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
151+
'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-database-'),
151152
'persistent' => env('REDIS_PERSISTENT', false),
152153
],
153154

@@ -158,6 +159,10 @@
158159
'password' => env('REDIS_PASSWORD'),
159160
'port' => env('REDIS_PORT', '6379'),
160161
'database' => env('REDIS_DB', '0'),
162+
'max_retries' => env('REDIS_MAX_RETRIES', 3),
163+
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
164+
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
165+
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
161166
],
162167

163168
'cache' => [
@@ -167,6 +172,10 @@
167172
'password' => env('REDIS_PASSWORD'),
168173
'port' => env('REDIS_PORT', '6379'),
169174
'database' => env('REDIS_CACHE_DB', '1'),
175+
'max_retries' => env('REDIS_MAX_RETRIES', 3),
176+
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
177+
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
178+
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
170179
],
171180

172181
],

config/filesystems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
'public' => [
4242
'driver' => 'local',
4343
'root' => storage_path('app/public'),
44-
'url' => env('APP_URL').'/storage',
44+
'url' => rtrim(env('APP_URL', 'http://localhost'), '/').'/storage',
4545
'visibility' => 'public',
4646
'throw' => false,
4747
'report' => false,

config/logging.php

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

5555
'stack' => [
5656
'driver' => 'stack',
57-
'channels' => explode(',', env('LOG_STACK', 'single')),
57+
'channels' => explode(',', (string) env('LOG_STACK', 'single')),
5858
'ignore_exceptions' => false,
5959
],
6060

config/mail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
'username' => env('MAIL_USERNAME'),
4747
'password' => env('MAIL_PASSWORD'),
4848
'timeout' => null,
49-
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
49+
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
5050
],
5151

5252
'ses' => [
@@ -112,7 +112,7 @@
112112

113113
'from' => [
114114
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
115-
'name' => env('MAIL_FROM_NAME', 'Example'),
115+
'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Laravel')),
116116
],
117117

118118
];

config/queue.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
| used by your application. An example configuration is provided for
2525
| each backend supported by Laravel. You're also free to add more.
2626
|
27-
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
27+
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis",
28+
| "deferred", "background", "failover", "null"
2829
|
2930
*/
3031

@@ -72,6 +73,22 @@
7273
'after_commit' => false,
7374
],
7475

76+
'deferred' => [
77+
'driver' => 'deferred',
78+
],
79+
80+
'background' => [
81+
'driver' => 'background',
82+
],
83+
84+
'failover' => [
85+
'driver' => 'failover',
86+
'connections' => [
87+
'database',
88+
'deferred',
89+
],
90+
],
91+
7592
],
7693

7794
/*

config/services.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
*/
1616

1717
'postmark' => [
18-
'token' => env('POSTMARK_TOKEN'),
18+
'key' => env('POSTMARK_API_KEY'),
19+
],
20+
21+
'resend' => [
22+
'key' => env('RESEND_API_KEY'),
1923
],
2024

2125
'ses' => [
@@ -24,10 +28,6 @@
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'),

0 commit comments

Comments
 (0)