Merge pull request #233 from mcruk/patch-1

customer is directed to correct URL after login
This commit is contained in:
Denis Duliçi 2018-02-28 13:56:23 +03:00 committed by GitHub
commit bc75006083
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
if ($user->customer) {
return redirect('customers');
return redirect()->intended('customers');
}
return redirect('/');