F
Filament7mo ago
Nicole

Filament authentication for non-admin, but I want them be redirected to another page

I have both admin and normal user roles. Only admins can access the admin panel I've done that using canAccessPanel. However, for normal users, I want to use the existing Filament authentication, but they should be redirected to a different page intended for them, instead of accessing the admin panel.
1 Reply
toeknee
toeknee7mo ago
Add a middleware that checks if they are X and else redirect to Y.
Want results from more Discord servers?
Add your server