© 2026 Hedgehog Software, LLC

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

Notifications works when triggered on mount() but not when triggered on submit()?

Hi! I'm stuck on showing notifications in the panel builder. I'm trying to show a notification to the user to inform them that no results are found for their search query. Using the following approach on a custom page:
    public function submit(): void
    {
        Notification::make()
            ->title('This should be shown on submit')
            ->warning()
            ->send();

        // dd('We get here!');
    }
    public function submit(): void
    {
        Notification::make()
            ->title('This should be shown on submit')
            ->warning()
            ->send();

        // dd('We get here!');
    }

The notification is never shown but when I uncomment the
dd()
dd()
this is executed as expected. The weird thing is that the notifications seem to work fine on the
mount()
mount()
function. The following snippets shows a notification when re-loading the page:
    public function mount(): void
    {
        Notification::make()
            ->title('This is a test notifications')
            ->warning()
            ->send();
        $this->form->fill([]);
    }
    public function mount(): void
    {
        Notification::make()
            ->title('This is a test notifications')
            ->warning()
            ->send();
        $this->form->fill([]);
    }


Thanks in advance!
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

Extra request when notifications are triggered using $wire vs javascript
FilamentFFilament / ❓┊help
3y ago
Database notifications in database but not rendering on page
FilamentFFilament / ❓┊help
17mo ago
Notifications not shown on redirect
FilamentFFilament / ❓┊help
15mo ago
Widget Time counter works locally but not on production
FilamentFFilament / ❓┊help
3y ago