F
Filament11mo ago
Mis Tsu

Redirect panel according to user role

I have two panels and I want to redirect according to user role,How to do it?
2 Replies
skyracer2012
skyracer201211mo ago
Assuming that you want to redirect to your panel from the index route (/) you can still use a normal laravel web route and based on that redirect further as in https://laravel.com/docs/10.x/routing#basic-routing
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Patrick Boivin
Patrick Boivin11mo ago
I think a Panel middleware would be a good way to do this