Following steps that help you to customize 404 not found page
Step 1: Create a new view file to customize 404 files
Filename :-> 404.blade.php
File Path :-> /resources/views/errors/404.blade.php
Example for bootstrap 4 layout
@extends('layouts.app')
@section('title','404')
@section('content')
<!-- example for bootstrap 4 layout -->
<div class="page-wrap d-flex flex-row align-items-center">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-12 text-center">
<span class="display-1 d-block">404</span>
<div class="mb-4 lead">The page you are looking for was not found.</div>
<a href="{{ url('/')}}" class="btn btn-link">Back to Home</a>
</div>
</div>
</div>
</div>
@endsection
Now you can simply run your application by following command:
php artisan serve
We are Recommending you:
- How to generate dynamic real time sitemap.xml file in Laravel 8
- Laravel Command List
- Laravel's .htaccess to remove "public" from URL
- Why Use the Repository Pattern in a Laravel Application
- How to Secure Your Laravel App: Beyond SSL Basics
- How to use soft delete in Laravel?
- Laravel 7 multi auth login
- How to change timezone in laravel 8
- Laravel 8 multi auth login
Master Your Time with the 80/20 Rule: A...
Get Control of Your Time: 6 Easy Ways...
India’s startup space is booming in 2025....
India breeds dreamers who build empires....
Git is a distributed version control system...
Top 27 Most Used AI Tools for Students...
How to Check SSD or HDD on Your PCAre you...
India breeds dreamers who build empires....
commonly, we remove rows from the database...