© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Fally

Why doesn't model injection work for ActionGroup?

For instance, if I have a simple action like
Tables\Actions\Action::make('status_done')
  ->visible(fn (Order $record): bool => $record->some_value
Tables\Actions\Action::make('status_done')
  ->visible(fn (Order $record): bool => $record->some_value

then the record model is injected in the clojure.

The problem is that when I have an ActionGroup, the same thing doesn't work. I'm trying to limit queries by doing the visibility verification in an actiongroup instead of each individual action.

Is there something I'm missing here?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Why mutateFormDataBeforeCreate() doesn't work
FilamentFFilament / ❓┊help
3y ago
afterStateUpdated doesn't work
FilamentFFilament / ❓┊help
2y ago
ExportBulkAction doesn't work
FilamentFFilament / ❓┊help
2y ago
afterStateHydrated() doesn't work?
FilamentFFilament / ❓┊help
3y ago