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
seems we cant do:
why?
2 Replies
hacky workaround to make it work:
1- create a livewire component
2- add it on the admin panel provider - renderHook
3- use
->dispatch('addToQueue', [$record->id])
4- listen the event on that lw component
done
but omg feels so hacky
please, if someone knows, explain me a workaround cuz im finding more issues this way im following is not appropiate xdThey can open a URL or dispatch a Livewire event.
->action()
is not supported for global search actions.