Add a locale as a url parameter on a panel
- Published: 25 Mar 2024 Updated: 08 Aug 2026
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:
make all Field or any components translatable
Integrate Language Switcher in User Menu for a Cleaner Top Bar
how to redirect the user after loging out of filament app
This time-saving starter kit provides a Laravel project with FilamentPHP already installed and configured, so you can dive straight into building without any of the initial setup headaches.
let users select a color for the panel