Add config to change redirect after login

This commit is contained in:
Nabeel Shahzad 2018-03-16 11:40:09 -05:00
parent 92bb56e344
commit 15d483b332
2 changed files with 6 additions and 1 deletions

View File

@ -45,6 +45,8 @@ class RegisterController extends Controller
$this->airportRepo = $airportRepo;
$this->userService = $userService;
$this->middleware('guest');
$this->redirectTo = config('app.login_redirect');
}
/**

View File

@ -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,