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:
when you don't have access to the current resource or page, `current` for the help!
when you have a lot of resources, let your users search for what they looking for int he sidebar.
how to use an action as a headerAction or as a table row action without code duplication
how to make actions sticky in tables when you have a lot of columns
A starting point for testing filamentPHP with tenant aware resources.