Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions src/Components/Database/stubs/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@
'url' => env('DB_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'prefix_indexes' => null,
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => null,
'journal_mode' => null,
'synchronous' => null,
'transaction_mode' => 'DEFERRED',
'pragmas' => [],
],

'mysql' => [
Expand All @@ -55,7 +61,7 @@
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
(PHP_VERSION_ID >= 80500 ? Pdo\Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),

Check failure on line 64 in src/Components/Database/stubs/database.php

View workflow job for this annotation

GitHub Actions / PHPStan

Access to constant ATTR_SSL_CA on an unknown class Pdo\Mysql.

Check failure on line 64 in src/Components/Database/stubs/database.php

View workflow job for this annotation

GitHub Actions / PHPStan

Access to constant ATTR_SSL_CA on an unknown class Pdo\Mysql.
]) : [],
],

Expand All @@ -75,7 +81,7 @@
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
(PHP_VERSION_ID >= 80500 ? Pdo\Mysql::ATTR_SSL_CA : PDO::MYSQL_ATTR_SSL_CA) => env('MYSQL_ATTR_SSL_CA'),

Check failure on line 84 in src/Components/Database/stubs/database.php

View workflow job for this annotation

GitHub Actions / PHPStan

Access to constant ATTR_SSL_CA on an unknown class Pdo\Mysql.

Check failure on line 84 in src/Components/Database/stubs/database.php

View workflow job for this annotation

GitHub Actions / PHPStan

Access to constant ATTR_SSL_CA on an unknown class Pdo\Mysql.
]) : [],
],

Expand Down Expand Up @@ -144,7 +150,8 @@

'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel'), '_').'_database_'),
'persistent' => env('REDIS_PERSISTENT', false),
],

'default' => [
Expand All @@ -154,6 +161,10 @@
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
'max_retries' => env('REDIS_MAX_RETRIES', 3),
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
],

'cache' => [
Expand All @@ -163,6 +174,10 @@
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
'max_retries' => env('REDIS_MAX_RETRIES', 3),
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
],

],
Expand Down
8 changes: 4 additions & 4 deletions src/Components/Log/stubs/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
| utilizes the Monolog PHP logging library, which includes a variety
| of powerful log handlers and formatters that you're free to use.
|
| Available Drivers: "single", "daily", "slack", "syslog",
| Available drivers: "single", "daily", "slack", "syslog",
| "errorlog", "monolog", "custom", "stack"
|
*/
Expand All @@ -54,7 +54,7 @@

'stack' => [
'driver' => 'stack',
'channels' => explode(',', env('LOG_STACK', 'single')),
'channels' => explode(',', (string) env('LOG_STACK', 'single')),
'ignore_exceptions' => false,
],

Expand Down Expand Up @@ -98,10 +98,10 @@
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'formatter' => env('LOG_STDERR_FORMATTER'),
'with' => [
'handler_with' => [
'stream' => 'php://stderr',
],
'formatter' => env('LOG_STDERR_FORMATTER'),
'processors' => [PsrLogMessageProcessor::class],
],

Expand Down
15 changes: 14 additions & 1 deletion src/Components/Queue/stubs/queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
| used by your application. An example configuration is provided for
| each backend supported by Laravel. You're also free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis",
| "deferred", "failover", "null"
|
*/

Expand Down Expand Up @@ -72,6 +73,18 @@
'after_commit' => false,
],

'deferred' => [
'driver' => 'deferred',
],

'failover' => [
'driver' => 'failover',
'connections' => [
'database',
'deferred',
],
],

],

/*
Expand Down
2 changes: 2 additions & 0 deletions src/Components/View/stubs/view.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

return [

'paths' => [
resource_path('views'),
],
Expand All @@ -9,4 +10,5 @@
'VIEW_COMPILED_PATH',
realpath(storage_path('framework/views'))
),

];
Loading