From 0ed6bd8dccc03ed3f3d3d78b1b760f9ae39c292b Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Sun, 19 Nov 2017 22:03:42 +0800 Subject: [PATCH] Update some config file to adopt laravel 5.5 config files --- .env.example | 7 +++++-- config/app.php | 9 ++++++--- config/mail.php | 33 ++++++++++++++++++++++----------- 3 files changed, 33 insertions(+), 16 deletions(-) diff --git a/.env.example b/.env.example index 9180c43..79cbab6 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,18 @@ APP_ENV=local -APP_DEBUG=true APP_KEY=SomeRandomString +APP_DEBUG=true +APP_LOG_LEVEL=debug +APP_URL=http://localhost -APP_LOCALE=id APP_TIMEZONE=Asia/Makassar +DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret +BROADCAST_DRIVER=log CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync diff --git a/config/app.php b/config/app.php index 684a9a7..d96fd6f 100644 --- a/config/app.php +++ b/config/app.php @@ -52,7 +52,7 @@ return [ | */ - 'url' => 'http://localhost', + 'url' => env('APP_URL', 'http://localhost'), /* |-------------------------------------------------------------------------- @@ -78,7 +78,7 @@ return [ | */ - 'locale' => env('APP_LOCALE', 'en'), + 'locale' => 'id', /* |-------------------------------------------------------------------------- @@ -121,9 +121,12 @@ return [ | */ - 'log' => env('APP_LOG', 'daily'), + 'log' => env('APP_LOG', 'daily'), + 'log_max_files' => 30, + 'log_level' => env('APP_LOG_LEVEL', 'debug'), + /* |-------------------------------------------------------------------------- | Autoloaded Service Providers diff --git a/config/mail.php b/config/mail.php index 227528c..a45f45a 100644 --- a/config/mail.php +++ b/config/mail.php @@ -54,7 +54,10 @@ return [ | */ - 'from' => ['address' => env('MAIL_FROM', 'mail@app.dev'), 'name' => env('MAIL_NAME', 'Laravel')], + 'from' => [ + 'address' => env('MAIL_FROM', 'mail@app.dev'), + 'name' => env('MAIL_NAME', 'Laravel'), + ], /* |-------------------------------------------------------------------------- @@ -82,30 +85,38 @@ return [ 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + /* |-------------------------------------------------------------------------- - | SMTP Server Password + | Sendmail System Path |-------------------------------------------------------------------------- | - | Here you may set the password required by your SMTP server to send out - | messages from your application. This will be given to the server on - | connection so that the application will be able to send messages. + | When using the "sendmail" driver to send e-mails, we will need to know + | the path to where Sendmail lives on this server. A default path has + | been provided here, which will work well on most of your systems. | */ - 'password' => env('MAIL_PASSWORD'), + 'sendmail' => '/usr/sbin/sendmail -bs', /* |-------------------------------------------------------------------------- - | Sendmail System Path + | Markdown Mail Settings |-------------------------------------------------------------------------- | - | When using the "sendmail" driver to send e-mails, we will need to know - | the path to where Sendmail lives on this server. A default path has - | been provided here, which will work well on most of your systems. + | If you are using Markdown based email rendering, you may configure your + | theme and component paths here, allowing you to customize the design + | of the emails. Or, you may simply stick with the Laravel defaults! | */ - 'sendmail' => '/usr/sbin/sendmail -bs', + 'markdown' => [ + 'theme' => 'default', + + 'paths' => [ + resource_path('views/vendor/mail'), + ], + ], ];