© 2026 Hedgehog Software, LLC

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

Muting Events

Does anyone know of a way with PanelBuilder to prevent model events being fired when a form is submitted?

I have an event listener that gets queued on every save, but I don't want it to run when my admin panel is being used.
Solution
Figured it out! In my
EditDeveloper
EditDeveloper
Page:

protected function beforeSave(): void
{
    Developer::unsetEventDispatcher();
}
protected function beforeSave(): void
{
    Developer::unsetEventDispatcher();
}
Jump to solution
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

events in filament
FilamentFFilament / ❓┊help
3y ago
Log Action events
FilamentFFilament / ❓┊help
3y ago
Listening for events
FilamentFFilament / ❓┊help
3y ago
Listening for broadcast events
FilamentFFilament / ❓┊help
2y ago