Change the default page instead of Dashboard for Panels
- Published: 26 Mar 2025 Updated: 26 Mar 2025
set any page like List Or view page as the main page instead of using a dashboard page in filamentPHP
in some cases you want the default page in the / route to be something else, like a list page for a resource, here is how you can do it:
Using Custom Login Response:
you can create a `CustomLoginResponse` and redirect the users after login to that page:
and register it in your panel provider:
Thanks to Leandro Ferreira for the idea
Using Laravel Routes:
you can redirect the user to the resource you want when they access the / page:
Changeing the slug for the resource:
you can set the slug for your class, for example let say you want the users to be redirected to the List Users page:
set the slug in the ListUsers
and in you panel provider, disable the dashboard page and add the ListUsers:
Related Tricks:
make all Field or any components translatable
how to use an action as a headerAction or as a table row action without code duplication
set any page like List Or view page as the main page instead of using a dashboard page in filamentPHP
when you don't have access to the current resource or page, `current` for the help!
A starting point for testing filamentPHP with tenant aware resources.