corrction in route

This commit is contained in:
rahul shukla 2019-07-23 12:04:09 +05:30
parent ef5eb1356c
commit bcd84d9e7f
2 changed files with 2 additions and 2 deletions

View File

@ -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']);
}

View File

@ -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();