From 15d483b332f1d5cfbfd8cb2071309e5a63415c64 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 16 Mar 2018 11:40:09 -0500 Subject: [PATCH] Add config to change redirect after login --- app/Http/Controllers/Auth/RegisterController.php | 2 ++ config/app.php | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 1abb0350..35a1ae25 100755 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -45,6 +45,8 @@ class RegisterController extends Controller $this->airportRepo = $airportRepo; $this->userService = $userService; $this->middleware('guest'); + + $this->redirectTo = config('app.login_redirect'); } /** diff --git a/config/app.php b/config/app.php index 1a89b21a..cdbcc143 100755 --- a/config/app.php +++ b/config/app.php @@ -8,7 +8,7 @@ */ return [ - 'name' => env('PHPVMS_VA_NAME', 'phpvms'), + 'name' => env('APP_NAME', 'phpvms'), 'env' => env('APP_ENV', 'dev'), 'debug' => env('APP_DEBUG', true), 'url' => env('APP_URL', 'http://localhost'), @@ -17,6 +17,9 @@ return [ 'locale' => env('APP_LOCALE', 'en'), 'fallback_locale' => 'en', + # Where to redirect after logging in/registration + 'login_redirect' => '/', + # This sends install and vaCentral specific information to help with # optimizations and figuring out where slowdowns might be happening 'analytics' => true,