filament auth and routing
I have an app that has 2 level user which is operator and user.currently,i'm using filament generated login page for the operator dashboard,and my own login page for the user page.
i planned to only use one login page,i use a middleware to make non-operator user can't access the operator dashboard,i also make the operator/login forbidden for all user role (since i only want to use my own login page). but then i got one problem,since the filament "operator/login" is made forbidden,operator who tried to sign in would be redirected to a forbidden page,which i think is a bad user experience. how to override the route so that when operator sign out,they would be redirected into "/" instead?
0 Replies