Skip to content

Commit 4954ee9

Browse files
committed
Redirect user to intended page after logging in
1 parent bbe9357 commit 4954ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ public function store(LoginStoreRequest $request)
3434
return redirect()->to($request->validated('redirect'));
3535
}
3636

37-
return redirect()->route('home');
37+
return redirect()->intended(\route('home'));
3838
}
3939
}

0 commit comments

Comments
 (0)