From 1d6edcf577f886a9f333a9fef47b9348c1291e23 Mon Sep 17 00:00:00 2001 From: Clement Date: Thu, 23 Jul 2020 14:56:26 +0200 Subject: [PATCH] =?UTF-8?q?:wrench:=20Compl=C3=A8te=20les=20=E2=89=A0=20pa?= =?UTF-8?q?ram=C3=A8tres?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/app.php | 6 +++--- routes/web.php | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/app.php b/config/app.php index 8409e00..ae0804b 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ return [ | */ - 'name' => env('APP_NAME', 'Laravel'), + 'name' => env('APP_NAME', 'My Home Collection'), /* |-------------------------------------------------------------------------- @@ -80,7 +80,7 @@ return [ | */ - 'locale' => 'en', + 'locale' => 'fr', /* |-------------------------------------------------------------------------- @@ -106,7 +106,7 @@ return [ | */ - 'faker_locale' => 'en_US', + 'faker_locale' => 'fr_FR', /* |-------------------------------------------------------------------------- diff --git a/routes/web.php b/routes/web.php index eb9d553..c832e47 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,7 +14,10 @@ use Illuminate\Support\Facades\Route; */ Route::get('/', function () { - return view('welcome'); + if (\Illuminate\Support\Facades\Auth::guest()) { + return redirect(\route('home')); + } + return redirect(\route('login')); }); Auth::routes();