PHPackages                             fbollon/lara-custom-error-pages - 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. fbollon/lara-custom-error-pages

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

fbollon/lara-custom-error-pages
===============================

Custom error pages for Laravel applications

1.3.0(7mo ago)0711[2 PRs](https://github.com/fbollon/lara-custom-error-pages/pulls)MITPHPPHP ^8.1|^8.2CI passing

Since Jul 22Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/fbollon/lara-custom-error-pages)[ Packagist](https://packagist.org/packages/fbollon/lara-custom-error-pages)[ Docs](https://github.com/fbollon/lara-custom-error-pages)[ RSS](/packages/fbollon-lara-custom-error-pages/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (13)Versions (8)Used By (0)

Custom error pages for Laravel applications
===========================================

[](#custom-error-pages-for-laravel-applications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/75134cc7008b886adf216c39faecbaea171535ab8064c03e5dfd43fad4add58b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66626f6c6c6f6e2f6c6172612d637573746f6d2d6572726f722d70616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fbollon/lara-custom-error-pages)[![GitHub Tests Action Status](https://camo.githubusercontent.com/43175332b840a0b594c83a83d36c2172333f90a705fa84c82eb62d9b6937b510/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f66626f6c6c6f6e2f6c6172612d637573746f6d2d6572726f722d70616765732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/fbollon/lara-custom-error-pages/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1f9aa412a519f0f361176c8472b71a07416fb61294798ad28e98ca02f5878381/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f66626f6c6c6f6e2f6c6172612d637573746f6d2d6572726f722d70616765732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/fbollon/lara-custom-error-pages/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5af3e625fc6b85c922c5cd7f695c293f3363a1250b5db05a0e78b210e69acf49/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66626f6c6c6f6e2f6c6172612d637573746f6d2d6572726f722d70616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fbollon/lara-custom-error-pages)

Custom and configurable error pages for Laravel

[![alt text](./blob/screenshot_503.jpg?raw=true)](./blob/screenshot_503.jpg?raw=true)

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

[](#installation)

You can install the package via composer:

```
composer require fbollon/lara-custom-error-pages
```

You can publish the config file with:

```
php artisan vendor:publish --tag="lara-custom-error-pages-config"
```

This is the contents of the published config file:

```
return [

    /** Custom header to include
     * for example to allow you to use your own fonts and css
     *
     * 'custom_header' => 'layouts.partials.header',
     *
     */

    'custom_header' => null,

    /** to display an autorefresh message and a countdown */
    'autorefresh' => [
        /** error numbers for which you want an autorefresh to reload the page */
        'errors' => [
            // 503,
        ],
        /** autorefresh interval in seconds */
        'interval' => 120
    ]
];
```

You have to publish the views to resources/views/errors/ with

```
php artisan vendor:publish --tag="lara-custom-error-pages-views"
```

You have to publish the images to public/vendor/lara-custom-error-pages/images/ with

```
php artisan vendor:publish --tag="lara-custom-error-pages-assets"
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Frédéric Bollon](https://github.com/fbollon)
- Image by [Kira Hoffmann](https://pixabay.com/fr/users/kirahoffmann-1855684/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1497227) from [Pixabay](https://pixabay.com/fr/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1497227)
- Image by [Orna Wachman](https://pixabay.com/fr/users/ornaw-8155178/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=4212584) from [Pixabay](https://pixabay.com/fr/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=4212584)
- Image by [Andrew Martin](https://pixabay.com/fr/users/aitoff-388338/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1751089) from [Pixabay](https://pixabay.com/fr/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=1751089)
- Image by [PublicDomainPictures](https://pixabay.com/fr/users/publicdomainpictures-14/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=69389) from [Pixabay](https://pixabay.com/fr/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=69389)
- Image by [anncapictures](https://pixabay.com/fr/users/anncapictures-1564471/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=3156771) from [Pixabay](https://pixabay.com/fr/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=3156771)
- Image by [Robinraj Premchand](https://pixabay.com/fr/users/iammrrob-5387828/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=2972105) from [Pixabay](https://pixabay.com/fr/?utm_source=link-attribution&utm_medium=referral&utm_campaign=image&utm_content=2972105)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance63

Regular maintenance activity

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~403 days

Total

4

Last Release

225d ago

PHP version history (2 changes)v1.0.0PHP ^8.1

1.2.0PHP ^8.1|^8.2

### Community

Maintainers

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

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (15 commits)")[![fbollon](https://avatars.githubusercontent.com/u/48405363?v=4)](https://github.com/fbollon "fbollon (14 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelfbollonlara-custom-error-pages

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fbollon-lara-custom-error-pages/health.svg)

```
[![Health](https://phpackages.com/badges/fbollon-lara-custom-error-pages/health.svg)](https://phpackages.com/packages/fbollon-lara-custom-error-pages)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k33.0M880](/packages/spatie-laravel-data)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.3M42](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

328482.0k25](/packages/codewithdennis-filament-select-tree)[nativephp/desktop

NativePHP for Desktop

38133.6k8](/packages/nativephp-desktop)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124581.3k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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