Add a locale as a url parameter on a panel
- Published: 25 Mar 2024 Updated: 04 May 2024
add locale parameter to all of your filament panel
create a Middleware and register it in filament panel middleware()
1URL::defaults(['local' => 'en']);
then in your panel provider:
1->path('{local}/admin')
Related Tricks:
how to use a resource with multiple models
Let Users to Select All Options with a Simple Hint Action
make all Field or any components translatable
add locale parameter to all of your filament panel
set any page like List Or view page as the main page instead of using a dashboard page in filamentPHP