create-custom-error-pages-in-laravel

Create Custom Error Pages in Laravel 5.3

Any web application required error pages for understanding which type error will occurs. By default Laravel does not provide any custom error pages. It is simple to add custom error pages like 400,401,403,404,500 etc. in laravel. You can also design these pages what you want.

Add below code in Handler.php file :

In view (resources/views/errors/):

In this folder you create all types of error pages like 404.blade.php,400.blade.php,500.blade.php etc. Here i am creating 404 error page.

 

 

 

  • NeoTechni

    I can’t get it to work for error 400, I just get

    Bad Request

    Your browser sent a request that this server could not understand.
    Size of a request header field exceeds server limit.
    Cookie
    Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80