How to stop an action on certain conditions with ->before()
What is the best practice in Filament to stop an action from continuing before it runs into a exception? For example I want to show a message to the user if delete is not possible because the category is used for items:
How can I break out of the DeleteAction in this case? Or is there another way to catch en exception and show a notification?
How can I break out of the DeleteAction in this case? Or is there another way to catch en exception and show a notification?