Customize redirect after login

This commit is contained in:
Nabeel Shahzad
2018-03-16 11:41:18 -05:00
parent 15d483b332
commit 428d016e26
2 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ class LoginController extends Controller
*/ */
public function __construct() public function __construct()
{ {
$this->redirectTo = config('app.login_redirect');
$this->middleware('guest', ['except' => 'logout']); $this->middleware('guest', ['except' => 'logout']);
} }

View File

@@ -18,7 +18,7 @@ return [
'fallback_locale' => 'en', 'fallback_locale' => 'en',
# Where to redirect after logging in/registration # Where to redirect after logging in/registration
'login_redirect' => '/', 'login_redirect' => '/dashboard',
# 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