-
Hello can you help me I found a problem in laravel 11, when I use sanctum for authentication, and jquery as fetch post for the login route. famous when the token is successfully generated, but not redirected to the home page or dashboard? Previously I used the same thing on Laravel 10 without any problems at all :( This is the code for the login function ` public function login(Request $request)
and this my route in view i just use simple logic fetch in ajax, after server gift the response success . i redirect to /home use window.location.href. even though in Laravel 10 with the same code everything is safe, i success to redirect and sistem detect login for the user |
Beta Was this translation helpful? Give feedback.
solve