Custom 404 error page implementation in Laravel

Source: Internet
Author: User

A 404 page is an essential page for a Web site, and when you try to access a resource that doesn't exist in your site, you need to give a friendly hint. So this article is mainly for everyone to do a laravel 404 wrong. method is still simple and clear.

Just create a new 404.blade.php in the Resources/views/errors directory!

The inside is 404 content, can be friendly support blade template inheritance, below is my example:

@extends (' Layouts.home ')

@section (' content ')
<div class= "Container" >
<div class= "Content" >
<div class= "title" >404 <a href= "{{route (' Phpjyz.index ')}}" > Back home </a></div>
</div>
</div>
@endsection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.