corrction in route
This commit is contained in:
parent
ef5eb1356c
commit
bcd84d9e7f
|
|
@ -38,7 +38,7 @@ class SessionController extends Controller
|
|||
public function show()
|
||||
{
|
||||
if (auth()->guard('customer')->check()) {
|
||||
return redirect()->route('customer.account.index');
|
||||
return redirect()->route('customer.profile.index');
|
||||
} else {
|
||||
return view($this->_config['view']);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class RedirectIfNotCustomer
|
|||
public function handle($request, Closure $next, $guard = 'customer')
|
||||
{
|
||||
if (! Auth::guard($guard)->check()) {
|
||||
return redirect()->route('customer.account.index');
|
||||
return redirect()->route('customer.profile.index');
|
||||
} else {
|
||||
if (Auth::guard($guard)->user()->status == 0) {
|
||||
Auth::guard($guard)->logout();
|
||||
|
|
|
|||
Loading…
Reference in New Issue