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
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.
I think a Panel middleware would be a good way to do this