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:

Collapse Sidebar by Default in Mobile

Sticky Actions In Forms

Bring the sticky actions back form filament v2

Larament - Your Time-Saving Laravel Starter Kit

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.

Demonstration of using a resource for multiple typical models

how to use a resource with multiple models

Globally Translate all Components

make all Field or any components translatable

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

File