You can return Global Search results with links inside of the result to perform the action in the result block, without navigating to any other page.
One-time payment
Sign in with GitHub to buy
Sign in first, then complete your $9 checkout.
30-day money-back guarantee
Filament's global search lets users find records from anywhere in the admin panel. But did you know you can attach action buttons to search results?
Sometimes you want to perform a server-side action directly from a search result — like approving a user by setting their email_verified_at timestamp. Since global search actions can't run PHP closures directly, we dispatch a Livewire event to a dedicated component that handles the logic.
Override getGloballySearchableAttributes() in your UserResource:
protected static ?string $recordTitleAttribute = 'name'; public static function getGloballySearchableAttributes(): array{ return ['name', 'email'];}
Use dispatchTo() to target a specific...