Laravel 5 custom 404 & 503 error pages

To get a custom 404 and 503 pages in Laravel 5 is very easy. Simply do 2 things to get it working:

1. Create a folder in views called errors and a blade called 404.blade.php and add your custom html in there.
2. Replace the render function with the one below in /app/exceptions/Handler.php

The go to check it here: https://localhost/404 should look like this:

The go to check it here: https://localhost/404

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *