Laravel 8

Laravel 8 Custom Error Page

Pinterest LinkedIn Tumblr

Today, I am going to show you how to create a custom 404 page in laravel 8.
First, you need to create a page inside of resources/views/errors/404.blade.php
Now, Code inside of 404.blade.php

<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href="">
    <script src="" ></script>
    <style type="text/css">
    transition: all 0.6s;

    html {
        height: 100%;

        font-family: 'Lato', sans-serif;
        color: #888;
        margin: 0;

        display: table;
        width: 100%;
        height: 100vh;
        text-align: center;

        display: table-cell;
        vertical-align: middle;

    .fof h1{
        font-size: 50px;
        display: inline-block;
        padding-right: 12px;
        animation: type .5s alternate infinite;

    @keyframes type{
        from{box-shadow: inset -3px 0px 0px #888;}
        to{box-shadow: inset -3px 0px 0px transparent;}
    <div class="container">
      <div id="main">
    	<div class="fof">
        		<h1>Error 404</h1>
                <h1> Real Programmer</h1>

Now, run the server

php artisan serve

Check 404 page