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:

Access the current component in a render hook

when you don't have access to the current resource or page, `current` for the help!

adding search bar for navigation groups and items

when you have a lot of resources, let your users search for what they looking for int he sidebar.

Reuse action in both Table and Header

how to use an action as a headerAction or as a table row action without code duplication

Sticky Table Row Actions

how to make actions sticky in tables when you have a lot of columns

Test resources with multi tenants

A starting point for testing filamentPHP with tenant aware resources.

Tweet
X GitHub RSS Feed
built with ❤️ using
filamentPHP
© 2026 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

File