Add config to change redirect after login
This commit is contained in:
@@ -45,6 +45,8 @@ class RegisterController extends Controller
|
|||||||
$this->airportRepo = $airportRepo;
|
$this->airportRepo = $airportRepo;
|
||||||
$this->userService = $userService;
|
$this->userService = $userService;
|
||||||
$this->middleware('guest');
|
$this->middleware('guest');
|
||||||
|
|
||||||
|
$this->redirectTo = config('app.login_redirect');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
+4
-1
@@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'name' => env('PHPVMS_VA_NAME', 'phpvms'),
|
'name' => env('APP_NAME', 'phpvms'),
|
||||||
'env' => env('APP_ENV', 'dev'),
|
'env' => env('APP_ENV', 'dev'),
|
||||||
'debug' => env('APP_DEBUG', true),
|
'debug' => env('APP_DEBUG', true),
|
||||||
'url' => env('APP_URL', 'http://localhost'),
|
'url' => env('APP_URL', 'http://localhost'),
|
||||||
@@ -17,6 +17,9 @@ return [
|
|||||||
'locale' => env('APP_LOCALE', 'en'),
|
'locale' => env('APP_LOCALE', 'en'),
|
||||||
'fallback_locale' => 'en',
|
'fallback_locale' => 'en',
|
||||||
|
|
||||||
|
# Where to redirect after logging in/registration
|
||||||
|
'login_redirect' => '/',
|
||||||
|
|
||||||
# This sends install and vaCentral specific information to help with
|
# This sends install and vaCentral specific information to help with
|
||||||
# optimizations and figuring out where slowdowns might be happening
|
# optimizations and figuring out where slowdowns might be happening
|
||||||
'analytics' => true,
|
'analytics' => true,
|
||||||
|
|||||||
Reference in New Issue
Block a user