All for Joomla The Word of Web Design

Laravel custom 404 page

custom 404 page laravel

In this Post, I will teach you how to create custom 404 error page in the laravel. In laravel When any users try to access an invalid URL in your project. it shows an error page to the users.this page contains some code and error message, Which is not understandable to normal users.A user will think that website is showing some error and user may leave your website.

Which is not a good response by any users. 404 page also play a very important role in the SEO of the website. If we have no 404 page the google may show some error or warning on your website. So it is very important to create a custom 404 page on the website.We can create the custom design for the 404 page. So, today we will learn how to manage 404 error in laravel.

 

step : 1 create new laravel project

step : 3 change in app/Exceptions/Handler.php file

step : 3 create route for 404 page

step : 4 create notfound() in PageController

Note: you can create this function in any controller with any name as per your requirement

step : 4 create 404(notfound) page in resources/views/errors folder

I hope this you Enjoyed this tutorial. If you like this please share this post and like my facebook page

Thanks

3 Comments

  • Sangeet Kumar Reply

    November 13, 2017 at 1:56 am

    Thanks

  • Gifty Reply

    November 30, 2017 at 7:02 pm

    Valueable

    • Abhi Singh Reply

      December 22, 2017 at 8:51 pm

      Thanks Gifty. Hope we have help you to solve your problem . Don’t forget to share this

Leave a Comment

Login

Welcome! Login in to your account

Remember me Lost your password?

Lost Password