© 2026 Hedgehog Software, LLC

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

Notification before return

When i click a button,downloading notification should appear
public function product()
        {
            $this->validate();
            
            Notification::make()
                ->title('Downloading')
                ->body('Downloading Product Report')
                ->success()
                ->send();
public function product()
        {
            $this->validate();
            
            Notification::make()
                ->title('Downloading')
                ->body('Downloading Product Report')
                ->success()
                ->send();

after downloaded notification should appear
Notification::make()
                        ->success()
                        ->title('Download Complete')
                        ->body('Product Report Downloaded')
                        ->send()
Notification::make()
                        ->success()
                        ->title('Download Complete')
                        ->body('Product Report Downloaded')
                        ->send()

but both these notifications are sent after the function return. Is there any way to show the notification before return
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

Insert button before notification
FilamentFFilament / ❓┊help
3y ago
Notification send before observer creating function is executed
FilamentFFilament / ❓┊help
14mo ago
Can I return a pdf file in a Notification?
FilamentFFilament / ❓┊help
3y ago
Notification action not working becuase $table must before initialization
FilamentFFilament / ❓┊help
3y ago