© 2026 Hedgehog Software, LLC

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

Dispatch event not working on action

EditRecord in panel 1
Action::make('Close Case')
->label(strval(__('close_case')))
->action(function (Model $record) {
$this->dispatch('switchedTeam',[$record])->to(PagesEditStudentCenter::class);
}),
same resource in panel 2 EditRecord
#[On('switchedTeam')]
public function switchedTeam($record)
{
info("list");
dd($record->id);
}
while i execute this close case action the switchedTeam function is not triggered in the panel 2
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

Dispatch Event on AfterStateUpdated()
FilamentFFilament / ❓┊help
13mo ago
dispatch livewire event after action execution
FilamentFFilament / ❓┊help
2y ago
Widget Table Action with modal form - dispatch refresh event not working
FilamentFFilament / ❓┊help
6mo ago
Unable to dispatch/listen event from Action
FilamentFFilament / ❓┊help
3y ago