I'm doing a small project in the style of Instagram but with basic features using Larvel and MDBootstrap.
I am making the form to edit personal information. Which is valid using Laravel, I want that when Laravel returns an error of the form it shows a "Toast Notification" of error in the page of the form.
These "toast" notifications are triggered by clicking on a button, they have no body in the HTML, they are ready to be used when u call them.
What can I do to detect an error, trigger this "toast" without having to press a button? Thank you