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
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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With