© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
5 replies
Eric

Cannot Add Actions To Global Search Results

https://filamentphp.com/docs/4.x/resources/global-search#adding-actions-to-global-search-results

app/Filament/Resources/Songs/SongResource.php
app/Filament/Resources/Songs/SongResource.php


seems we cant do:
public static function getGlobalSearchResultActions(Model $record): array
{
    return [
        Action::make('add_to_queue')
            ->action(function (Song $record): void {
                dd('i wanna do stuff here');
            })
    ];
}
public static function getGlobalSearchResultActions(Model $record): array
{
    return [
        Action::make('add_to_queue')
            ->action(function (Song $record): void {
                dd('i wanna do stuff here');
            })
    ];
}

why?

Livewire \ Exceptions \ MethodNotFoundException
PHP 8.4.12
12.25.0
Unable to call component method. Public method [mountAction] not found on component
Livewire \ Exceptions \ MethodNotFoundException
PHP 8.4.12
12.25.0
Unable to call component method. Public method [mountAction] not found on component
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

global search sort results
FilamentFFilament / ❓┊help
2y ago
Is it possible to add pages to the global search results?
FilamentFFilament / ❓┊help
17mo ago
Order By for Global Search Results
FilamentFFilament / ❓┊help
9mo ago
Any way to add filter to global search?
FilamentFFilament / ❓┊help
2y ago