Add config to change redirect after login
This commit is contained in:
parent
92bb56e344
commit
15d483b332
@ -45,6 +45,8 @@ class RegisterController extends Controller
|
||||
$this->airportRepo = $airportRepo;
|
||||
$this->userService = $userService;
|
||||
$this->middleware('guest');
|
||||
|
||||
$this->redirectTo = config('app.login_redirect');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user