Action failed notification.
I have to delete the record from the table using table delete actions, Sometimes there is an issue with delete operation and throw the exception, I want to show that exception message on failed notification. How can I do that in filament.
Solution:Jump to solution
@Karthick K Thanks for the idea. Did you say like this
Service Provider:
```php
public function register(): void
{...
6 Replies
Any one can help
This is UNTESTED but should get you in the ballpark I would think.
See if you can get the exception that way and then you can make the notification nicer if needed.
@Chrispian
I used this but I want it from global level and try to configure like
But it won't work.
What you can you do it create a extended class of the delete action and then update the code with the notification. Now bind the new delete action to filament delete action.
Now it is implemented global level
Solution
@Karthick K Thanks for the idea. Did you say like this
Service Provider:
TableDeleteAction:
Yes exactly. It should work