From 1582320651059a2d8b7afd21cd49d97987cebcc6 Mon Sep 17 00:00:00 2001 From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com> Date: Mon, 1 Dec 2025 23:11:33 +0100 Subject: [PATCH] chore(config): update config files to the latest skeleton version --- .env.example | 17 +++++++++++++++++ config/cache.php | 5 +++++ config/database.php | 6 ++++-- config/ray.php | 4 ++-- 4 files changed, 28 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index a9997da14..ba03b5ec6 100644 --- a/.env.example +++ b/.env.example @@ -4,7 +4,12 @@ APP_KEY= APP_DEBUG=true APP_URL=http://localhost +APP_LOCALE=en +APP_FALLBACK_LOCALE=en +APP_FAKER_LOCALE=en_US + APP_MAINTENANCE_DRIVER=file +# APP_MAINTENANCE_STORE=database # PHP_CLI_SERVER_WORKERS=4 @@ -16,6 +21,11 @@ LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug DB_CONNECTION=sqlite +# DB_HOST=127.0.0.1 +# DB_PORT=3306 +# DB_DATABASE=laravel +# DB_USERNAME=root +# DB_PASSWORD= SESSION_DRIVER=database SESSION_LIFETIME=120 @@ -28,6 +38,7 @@ FILESYSTEM_DISK=local QUEUE_CONNECTION=sync CACHE_STORE=database +# CACHE_PREFIX= MEMCACHED_HOST=127.0.0.1 @@ -45,4 +56,10 @@ MAIL_PASSWORD=null MAIL_FROM_ADDRESS="hello@example.com" MAIL_FROM_NAME="${APP_NAME}" +AWS_ACCESS_KEY_ID= +AWS_SECRET_ACCESS_KEY= +AWS_DEFAULT_REGION=us-east-1 +AWS_BUCKET= +AWS_USE_PATH_STYLE_ENDPOINT=false + VITE_APP_NAME="${APP_NAME}" diff --git a/config/cache.php b/config/cache.php index 8c31b6548..4cd7f7fd5 100644 --- a/config/cache.php +++ b/config/cache.php @@ -39,6 +39,11 @@ return [ 'serialize' => false, ], + 'session' => [ + 'driver' => 'session', + 'key' => env('SESSION_CACHE_KEY', '_cache'), + ], + 'database' => [ 'driver' => 'database', 'connection' => env('DB_CACHE_CONNECTION'), diff --git a/config/database.php b/config/database.php index c54eb736b..a3d014e76 100644 --- a/config/database.php +++ b/config/database.php @@ -36,11 +36,13 @@ return [ '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' => [ @@ -59,7 +61,7 @@ return [ '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'), ]) : [], ], @@ -79,7 +81,7 @@ return [ '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'), ]) : [], ], diff --git a/config/ray.php b/config/ray.php index d8a730803..dbda03a75 100644 --- a/config/ray.php +++ b/config/ray.php @@ -11,7 +11,7 @@ return [ 'enable' => env('RAY_ENABLED', false), /* - * When enabled, all cache events will automatically be sent to Ray. + * When enabled, all cache events will automatically be sent to Ray. */ 'send_cache_to_ray' => env('SEND_CACHE_TO_RAY', false), @@ -100,7 +100,7 @@ return [ /* * When enabled, all deprecation notices will be automatically sent to Ray. */ - 'send_deprecated_notices_to_ray' => env('SEND_DEPRECATED_NOTICES_TO_RAY', false), + 'send_deprecated_notices_to_ray' => env('SEND_DEPRECATED_NOTICES_TO_RAY', true), /* * The host used to communicate with the Ray app.