© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
Toni

Sending notification after action

Hi,
I have this action:
Actions\Action::make('Publish')
                ->label(__('mailtemplate.labels.publish'))
                ->action(fn () => MailHelper::publishMailTemplate($this->record))
                ->successNotification(
                    Notification::make('published')
                        ->title(__('mailtemplate.notifications.published'))
                        ->success()
                )
                ->visible(fn () => !$this->record->is_published),
Actions\Action::make('Publish')
                ->label(__('mailtemplate.labels.publish'))
                ->action(fn () => MailHelper::publishMailTemplate($this->record))
                ->successNotification(
                    Notification::make('published')
                        ->title(__('mailtemplate.notifications.published'))
                        ->success()
                )
                ->visible(fn () => !$this->record->is_published),

After a successful performance I would the notification, but nothing happens.
What do I miss?

Thanky you
Solution
Just add it at the end of
action()
action()
. The method you use if for default actions. As soon as you use
action()
action()
it’s not called
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

Hide Notification Sidebar After Notification Action
FilamentFFilament / ❓┊help
3y ago
Notification after Import Action finishes
FilamentFFilament / ❓┊help
2y ago
Database Notification Actions: Infolist in action?
FilamentFFilament / ❓┊help
3y ago
Notification Action - V4
FilamentFFilament / ❓┊help
8mo ago