In this section, I will point out some tips in dealing with errors. I will show how to use them overall, with forms and on different pages.
If you followed this far, you have completed the previous recipes on setting up the layout page and running the Laravel php artisan auth
scaffold command. So we have two places to think about showing messages, one on the top of pages where you might want to show a message about a user and previous action that was successful, and secondly, in forms. We will cover both here.
But just make sure your main layout page has the following:
And that file resources/views/error.blade.php
will look like this:
The following are the steps to implement an error message template: