customer is directed to correct URL after login

This commit is contained in:
mcruk 2018-02-28 10:05:57 +00:00 committed by GitHub
parent 9439188392
commit 5658cf4165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ class Login extends Controller
// Check if is customer // Check if is customer
if ($user->customer) { if ($user->customer) {
return redirect('customers'); return redirect()->intended('customers');
} }
return redirect('/'); return redirect('/');