Home  >  Article  >  Backend Development  >  Laravel custom error interface 404

Laravel custom error interface 404

WBOY
WBOYOriginal
2016-09-28 08:54:081053browse

I added a 404.blade.php under resources/views/errors/ of the laravel project. Since the template requires a menu classification variable, which method should I pass the variable in? The following is my directory structure

Laravel custom error interface 404

Here are the variables used in my 404 template

Laravel custom error interface 404

How should I deal with this error!

Reply content:

I added a 404.blade.php under resources/views/errors/ of the laravel project. Since the template requires a menu classification variable, which method should I pass the variable in? The following is my directory structure

Laravel custom error interface 404

Here are the variables used in my 404 template

Laravel custom error interface 404

How should I deal with this error!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn