© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Asmit

Table Delete Action global configuration not working

I tried to configure the delete action from the service provider boot method in but it won't work.
DeleteAction::configureUsing(function (DeleteAction $deleteAction) {
            return $deleteAction->action(function ($record) {
                try {
                    $record->delete();
                    Notification::make()
                        ->success()
                        ->title('Record deleted successfully!')
                        ->send();
                } catch (\Exception $e) {
                    Notification::make()
                        ->danger()
                        ->title($e->getMessage())
                        ->duration(5000)
                        ->send();
                }
            });
        });
DeleteAction::configureUsing(function (DeleteAction $deleteAction) {
            return $deleteAction->action(function ($record) {
                try {
                    $record->delete();
                    Notification::make()
                        ->success()
                        ->title('Record deleted successfully!')
                        ->send();
                } catch (\Exception $e) {
                    Notification::make()
                        ->danger()
                        ->title($e->getMessage())
                        ->duration(5000)
                        ->send();
                }
            });
        });
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

Delete Action Not Working
FilamentFFilament / ❓┊help
2y ago
Table Action Not Working
FilamentFFilament / ❓┊help
3y ago
Delete action is not working
FilamentFFilament / ❓┊help
2y ago
Table Delete Action Issue
FilamentFFilament / ❓┊help
13mo ago