Skip to content

Commit 2573dfd

Browse files
author
Gareth Redfern
committed
redirect to login page if not authenticated
1 parent 7452e8e commit 2573dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/Authenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Authenticate extends Middleware
1515
protected function redirectTo($request)
1616
{
1717
if (! $request->expectsJson()) {
18-
return url('http://localhost:8080');
18+
return url('http://localhost:8080/login');
1919
}
2020
}
2121
}

0 commit comments

Comments
 (0)