RAFI SALMAN
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?
1 replies
Widget
How to customize default account widget?i want to add a "home button" that will redirect me to "/". Since it's just a single button,i want to just put it inside the account widget
If what i said above can't be achieved,how to add a custom widget that only display the button instead?all the video on YouTube only show how to make chart widget
4 replies