http-status-code-404laravel-5.7

How do i create a custom 404 page in Laravel 5.7?


Can anyone help me to create a custom 404 page in laravel 5.7, i am new to laravel so it'd great if you tell me the flow for this.

Thanks


Solution

  • Create 404.blade.php file in errors folder inside your views and make customizations that you want.

    OR

    You can also use vendor:publish command to publish all the errors blade defined in core.

    php artisan vendor:publish --tag=laravel-errors
    

    This will create an errors folder in your views directory and in it there will be all error blade files. You can customize 404.blade.php in it.