How to show error message in modal for custom Action::make()
Throw seems just show laravel error, but how do i show it on the Action modal itself?
6 Replies
@elsonium Please read #✅┊rules on how to format your code
@Dennis Koch done sir 🫡
Thanks. Instead of throwing an exception you can use Notifications. Here's an example. More in the notification docs.
@Dennis Koch thanks Dennis, is there no other way to display within the modal? maybe trigger custom validation message for the DateTime form field?
Solution
You can either throw a Validation error or use a custom rule.