Yurii
Filament exception handling
What is the best practice for exception handling?
Example:
I have "Detach" action and somewhere in model observer I am checking that the action is not allowed for this particular record and want to throw an exception.
I understand that can disable the action button for this record based on the same condition however I cannot relay only on frontend allowed actions but should ensure that the record is never detached.
How can I make it sent as Failure Notification? I used to work with Nova and it sends error notification for all exceptions thrown in models.
Do I miss something?
5 replies