Multi user authentication using single using single user table in laravel 11 with api passport
sir how can i able to redirect after successful login on the basis of roles provided inside user table like im using ajax to send request after getting success i want to redirect them their respective page(for starters their dashboards and also not other infiltrate inside each dashboards ) how can i proceed futher? as other example shows to add middleware inside kernel.php but by default i dont have any kind of file and i dont know where to add middleware as well
@vincent15000 i did try when i redirecting them after succes i sends me back 404 error and i didn't get any clear way from any site that if i apply that would the person with different role can access other role person route
how can i able to redirect after successful login on the basis of roles provided inside user table like im using ajax to send request after getting success i want to redirect them their respective page
Sound like it needs to be a regular web app and not an API.
@Jayaat I don't know why you call this **multiuser authentication``` because the problem you are speaking about seems to be only a redirection to a cutom page according to the user's role.
@vincent15000 basically i created protected routes on role basis such that then can't intervene btw other's routes so that how i say it is multi user authentication