Implementing an error message template

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.

Getting started…

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:

Getting started…

And that file resources/views/error.blade.php ...

Get Laravel 5.x Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.