Migrate all configs into the env.php file #1075 (#1128)

* Migrate all configs into the env.php file #1075

* Style fixes

* Fix config names in CreateConfig

* Fix installer/installer error messages
This commit is contained in:
Nabeel S
2021-04-10 17:19:45 -04:00
committed by GitHub
parent 6c3992e781
commit ac64a5db75
17 changed files with 247 additions and 81 deletions

View File

@@ -15,7 +15,7 @@ return [
'debug' => env('APP_DEBUG', true),
'url' => env('APP_URL', ''),
'version' => '7.0.0',
'debug_toolbar' => false,
'debug_toolbar' => env('DEBUG_TOOLBAR', false),
'locale' => env('APP_LOCALE', 'en'),
'fallback_locale' => 'en',

View File

@@ -1,5 +1,7 @@
<?php
use App\Console\Logger;
return [
/*
|--------------------------------------------------------------------------
@@ -44,18 +46,18 @@ return [
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'level' => env('LOG_LEVEL', 'debug'),
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
'level' => env('LOG_LEVEL', 'debug'),
'days' => 3,
],
'cron_rotating' => [
'driver' => 'daily',
'path' => storage_path('logs/cron.log'),
'level' => 'debug',
'level' => env('LOG_LEVEL', 'debug'),
'days' => 3,
],
'slack' => [
@@ -67,15 +69,15 @@ return [
],
'stdout' => [
'driver' => 'custom',
'via' => \App\Console\Logger::class,
'via' => Logger::class,
],
'syslog' => [
'driver' => 'syslog',
'level' => 'debug',
'level' => env('LOG_LEVEL', 'debug'),
],
'errorlog' => [
'driver' => 'errorlog',
'level' => 'debug',
'level' => env('LOG_LEVEL', 'debug'),
],
],
];

View File

@@ -1,5 +1,7 @@
<?php
use App\Models\User;
return [
/*
|--------------------------------------------------------------------------
@@ -29,7 +31,7 @@ return [
],
'stripe' => [
'model' => App\User::class,
'model' => User::class,
'key' => env('STRIPE_KEY'),
'secret' => env('STRIPE_SECRET'),
],