modified redirect when not logged in

This commit is contained in:
2021-03-10 22:21:57 +09:00
parent 4f15afb3ce
commit 9feba2916a
6 changed files with 102 additions and 106 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ class Authenticate extends Middleware
protected function redirectTo($request)
{
if(!$this->auth->check()){
return route('/');
return redirect()->route('notloggedin');
}
}
}