PHPackages                             arielmejiadev/inertiajs-error-page - 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. arielmejiadev/inertiajs-error-page

ActiveLibrary

arielmejiadev/inertiajs-error-page
==================================

It adds a Vue component to load error page with the beautiful Illustrations used on Laravel 5.7 with TailwindCSS.

1.0.0(5y ago)1027[1 issues](https://github.com/ArielMejiaDev/inertiajs-error-page/issues)MITVue

Since Nov 30Pushed 5y ago3 watchersCompare

[ Source](https://github.com/ArielMejiaDev/inertiajs-error-page)[ Packagist](https://packagist.org/packages/arielmejiadev/inertiajs-error-page)[ Docs](https://github.com/arielmejiadev/inertiajs-error-page)[ RSS](/packages/arielmejiadev-inertiajs-error-page/feed)WikiDiscussions master Synced 1mo ago

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

InertiaJS Error Page
====================

[](#inertiajs-error-page)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dc243db2abce9c423cdb6dfa64c4b21f2b4ac1377261c26414bc0a90dc58012d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617269656c6d656a69616465762f696e65727469616a732d6572726f722d706167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arielmejiadev/inertiajs-error-page)[![Total Downloads](https://camo.githubusercontent.com/70a433c1434484e5e93b23f6eb116077aa5fb13e75015ccc1931476dc726b098/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617269656c6d656a69616465762f696e65727469616a732d6572726f722d706167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arielmejiadev/inertiajs-error-page)

It adds a vue component to load error pages with the beautiful Illustrations of Laravel 5.7 using TailwindCSS.

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

[](#installation)

You can install the package via composer:

```
composer require arielmejiadev/inertiajs-error-page
```

Publish files
-------------

[](#publish-files)

```
php artisan vendor:publish --tag=inertiajs-errors
```

Usage
-----

[](#usage)

Go to "app/Exceptions/Handler.php" and override the render method and add another custom method:

```
public function render($request, Throwable $exception)
{
    $response = parent::render($request, $exception);

    if ($this->thereAreErrorsInProduction($response)) {

        return \Inertia\Inertia::render('Errors/Error', [
            'status' => $response->status(),
            'message' => $exception->getMessage(),
            'home' => config('app.url'),
        ])->toResponse($request)->setStatusCode($response->status());
    } else if ($response->status() === 419) {
        return back()->with([
            'message' => 'The page expired, please try again.',
        ]);
    }

    return $response;
}

public function thereAreErrorsInProduction($response)
{
    return \Illuminate\Support\Facades\App::environment('production') && in_array($response->status(), [500, 503, 404, 403, 401, 429]);
}
```

Test error pages locally
------------------------

[](#test-error-pages-locally)

In your env file change:

```
APP_ENV=production
```

- Remember

If you are using Inertia Stack you need to compile your assets

```
npm run watch

```

You can test different code responses, the easiest way is to search a route that does not exists in your project :) to get a 404.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Ariel Mejia Dev](https://github.com/arielmejiadev)
- [Steve Schoger](https://github.com/sschoger)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

1989d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31971074?v=4)[ArielMejiaDev](/maintainers/ArielMejiaDev)[@ArielMejiaDev](https://github.com/ArielMejiaDev)

---

Top Contributors

[![ArielMejiaDev](https://avatars.githubusercontent.com/u/31971074?v=4)](https://github.com/ArielMejiaDev "ArielMejiaDev (4 commits)")

---

Tags

laravelinertiajsarielmejiadevinertiajs-error-page

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arielmejiadev-inertiajs-error-page/health.svg)

```
[![Health](https://phpackages.com/badges/arielmejiadev-inertiajs-error-page/health.svg)](https://phpackages.com/packages/arielmejiadev-inertiajs-error-page)
```

###  Alternatives

[outhebox/laravel-translations

Manage your Laravel translations with a beautiful UI. Add, edit, delete, import, and export translations with ease.

80687.6k](/packages/outhebox-laravel-translations)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

3812.2k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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