After login customer will redirect ti previous page
This commit is contained in:
parent
35ccc65342
commit
8d3146e2d6
|
|
@ -45,6 +45,8 @@ class SessionController extends Controller
|
|||
if (auth()->guard('admin')->check()) {
|
||||
return redirect()->route('admin.dashboard.index');
|
||||
} else {
|
||||
session()->put('url.intended', url()->previous());
|
||||
|
||||
return view($this->_config['view']);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue