© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
David | Fortune Validator

Embed Notification Action

I'm at a loss on this one. I have a notification that pops up and halts a Create form when no credit exists. I then have a button to request a credit limit. I cannot seem to fire off said custom action. for the moment I have a die() in place.



protected function beforeCreate(): void
    {
        $credit = new CreditLimitReport($this->data['client_id']);
        if(!$credit->isLive)
        {
            Notification::make()
                ->warning()
                ->title('Credit not set')
                ->actions([
                    Action::make('request_credit')
                        ->label('Request Credit')
                        ->action(function(){
                            die('test');
                        }) ,
                ])
                ->send();
            $this->halt();
        }
    }
protected function beforeCreate(): void
    {
        $credit = new CreditLimitReport($this->data['client_id']);
        if(!$credit->isLive)
        {
            Notification::make()
                ->warning()
                ->title('Credit not set')
                ->actions([
                    Action::make('request_credit')
                        ->label('Request Credit')
                        ->action(function(){
                            die('test');
                        }) ,
                ])
                ->send();
            $this->halt();
        }
    }
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

Database Notification Actions: Infolist in action?
FilamentFFilament / ❓┊help
3y ago
Notification Action - V4
FilamentFFilament / ❓┊help
8mo ago
Action failed notification.
FilamentFFilament / ❓┊help
2y ago
Notification custom action
FilamentFFilament / ❓┊help
3y ago