Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.7 error 404 handling page location

I couldn't find the location of the error 404 page in Laravel 5.7 please help. here is the error page photo : https://imgur.com/a/Fs89isK

like image 820
MoncefB Avatar asked Sep 10 '18 15:09

MoncefB


People also ask

Where is the location of the 404 page in Laravel?

So the location of our 404 page is resources/views/errors/404.blade.php. This is the custom 404 error page. Recommended:- How to fix Error: laravel.log could not be opened?

How to create custom error pages in Laravel?

So navigate resources/views/errors) directory in laravel apps. And then create any custom error pages inside this folder. Go to resources/views folder and create a folder named errors. Then inside this errors folder, create a file called 404.blade.php. So the location of our 404 page is resources/views/errors/404.blade.php.

How to check default design in Laravel?

So, basically laravel will stetted default design, but if you created 404 file into "errors" directory then it will take from there. So, you just need to create 404 blade file and put your own code like i added then you can simply check it out. Now you can simply check it out.

How to fix error Laravel log could not be opened?

Recommended:- How to fix Error: laravel.log could not be opened? Go to resources/views folder and create a folder named errors. Then inside this errors folder, create a file called 500.blade.php.


1 Answers

You can find it here:

vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/views/404.blade.php

You shouldn't be editing this file directly though. If you want to add your custom error page just add an errors folder inside the resources/views and create your own 404.blade.php as desired. It will be used instead of Laravel's one.

like image 53
latr.88 Avatar answered Sep 24 '22 22:09

latr.88