Answer the question
In order to leave comments, you need to log in
How to make a 404 page in laravel 5?
I can't figure out how to display a 404 error page in laravel. The documentation says that to display your error page, you need to create it in this way resources/views/errors/404.blade.php
I created the page, but how do I make it show?
For example, if the URL does not match any of the routes, then laravel throws the error "Whoops, looks like something went wrong ...", but does not display a 404.
Answer the question
In order to leave comments, you need to log in
You can override the method render
in app/Exceptions/Handler.php
so that it only returns views with certain errors.
You change the method in app/Exceptions/Handler.php , You make it give a certain template on a certain error
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question