FilamentPHP Glow Filament Glow
beta
  • All Tricks
  • About
login
logo dark logo light

Add a locale as a url parameter on a panel

Image Description
By: Lara Zeus
  • Published: 25 Mar 2024 Updated: 04 May 2024
Panels

add locale parameter to all of your filament panel

Add a locale as a url parameter on a panel

create a Middleware and register it in filament panel middleware()

1URL::defaults(['local' => 'en']);

then in your panel provider:

1->path('{local}/admin')
Back to Tricks
logo dark logo light

Related Tricks:

Add new link to the panel topbar

add any link or actions to the topbar

Add a Language Switcher Under The User Menu

Integrate Language Switcher in User Menu for a Cleaner Top Bar

Use translatable for relations in select components

get translatable attribute in a relationships

Add a locale as a url parameter on a panel

add locale parameter to all of your filament panel

Select All Items in a Dropdown Select

Let Users to Select All Options with a Simple Hint Action

Tweet
X GitHub RSS Feed
built with ❤️ using
filamentPHP
© 2025 Lara Zeus. All rights reserved.
Terms and Conditions Contact Us

Syntax highlighting by Torchlight .

FilamentPHP Glow Filament Glow
beta
    • All Tricks
    • About

Media Picker

  • No Files in the library or nothing found for your search.

Add Files