We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0100345 commit 9ba88abCopy full SHA for 9ba88ab
src/Auth.php
@@ -41,11 +41,11 @@ class Auth
41
public function __construct()
42
{
43
$this->middleware('auth.required', function () {
44
- response()->redirect('/auth/login', 401);
+ response()->redirect('/auth/login');
45
});
46
47
$this->middleware('auth.guest', function () {
48
- response()->json('/dashboard', 401);
+ response()->redirect('/dashboard');
49
50
51
$this->middleware('is', function ($role) {
0 commit comments