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

Select All Items in a Dropdown Select

Image Description
By: Lara Zeus
  • Published: 15 Apr 2024 Updated: 04 May 2024
Forms Panels

Let Users to Select All Options with a Simple Hint Action

Select All Items in a Dropdown Select

When you have a dropdown select with multi select options, you can add a hint action to easily select all options at once.

and this is how you can do it:

1->hintAction(fn (Select $component) => Action::make('select all')
2 ->action(fn () => $component->state(ServiceCenter::pluck('id')->toArray()))
3)
Back to Tricks
logo dark logo light

Related Tricks:

Use translatable for relations in select components

get translatable attribute in a relationships

Disabling the cancel button on the filament editing form

Usability: Knowing whether or not the record was saved.

Filament form with factory data

Sometimes, when we need to test our application locally, we always have to fill forms manually. Let's take the Filament approach and achieve this with more accurate data.

Make components globally translatable

Translating components can often be a repetitive task, Fortunately, there's a neat trick to automate this process, making your components instantly translatable.

Globally Translate all Components

make all Field or any components translatable

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