PHPackages                             nhattay/laravel-404page - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nhattay/laravel-404page

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nhattay/laravel-404page
=======================

Laravel custom 404 page

v1.0.1(3y ago)110PHPPHP &gt;=7.2

Since Feb 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nhattay/laravel-404page)[ Packagist](https://packagist.org/packages/nhattay/laravel-404page)[ RSS](/packages/nhattay-laravel-404page/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

\#Introduction To give you an ability to custom 404 page. Custom 404 page according the Model.

Requirements
------------

[](#requirements)

PHP 7.0 and later.

Installation
------------

[](#installation)

Composer

```
composer require nhattay/laravel-404page
```

Configuration

```
php artisan vendor:publish --tag=404page
```

you can see a new file `config/404page.php`

Getting Started
---------------

[](#getting-started)

1. Custom view

```
'models' => [
    App\Models\User::class => [
        'view' => 'user-404', /* It refers to file resources/views/user-404.blade.php */
    ]
]
```

2. Passing variables to the view

```
'models' => [
    App\Models\User::class => [
        'view' => 'user-404', /* It refers to file resources/views/user-404.blade.php */
        'variables' => [      /* You are able to pass variables to the view */
            'customMessage' => 'User not found',
        ],
    ]
]
```

Then there's a variable `$customMessage` available in the view

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1233d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v1.0.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/d72f85288e874eb8a9acaaef083131af73c0381689ef26b4c944eb4bb6e70f58?d=identicon)[nhatnm](/maintainers/nhatnm)

### Embed Badge

![Health badge](/badges/nhattay-laravel-404page/health.svg)

```
[![Health](https://phpackages.com/badges/nhattay-laravel-404page/health.svg)](https://phpackages.com/packages/nhattay-laravel-404page)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
