In this video we are going to learn about how to create custom 404 page.
By default when we go to any wrong URL which is not exist like /xyz.
Its showing this default 404, page not found page.
Lets see how can we create own custom 404 page.
For creating own custom 404 pge just go to views directroy and here create a new folder lets say folder name is errors.
Inside the errors folder create new file 404.blade.php.
Inside this file write the following code.

<!DOCTYPE html>
<html lang=\"en\">
<meta charset=\"UTF-8\">
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
<meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
<title>Page Not Found</title>
{{-- Add here bootstrap css cdn --}}
<section style=\"padding-top:100px\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-md-8 offset-md-2 text-center\">
<h1 style=\"font-size:162px\">404</h1>
<h2>Page Not Found</h2>
<p>We are sorry, the page you requested could not be found. Please go back to the homepage.</p>
<a href=\"/\" class=\"btn btn-primary\">Visit Homepage</a>

Now save this file and lets check.
So goto the browser and go to any url which not exist.
So just type /sdfsdfsd.
You can see here the custom 404 error page.
So in this way you can create a custom 404 error page in laravel 8.