Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Server Error Pages

Server Error Pages Laravel Package

enniosousa/server-error-pages

Laravel package that provides ready-made, customizable server error pages for common HTTP status codes. Quickly brand your 404, 500, and other error responses with clean templates instead of building each view by hand, keeping users informed when things go wrong.

View on GitHub
Deep Wiki
Context7

Laravel server-side error pages

Frequently asked questions about Server Error Pages
How do I install enniosousa/server-error-pages in a Laravel application?
Install it with Composer using composer require enniosousa/server-error-pages. The package is service-provider based and works with Laravel's package auto-discovery, so no manual provider registration is normally needed. After installing, publish the package assets with php artisan vendor:publish and select the server-error-pages provider tag to get the error views and optional config into your app.
Which Laravel versions does this server error pages package support?
Version 1.1.0 shipped alongside a Laravel framework update, but the release notes do not spell out the exact illuminate/support and PHP constraints. Check the composer.json on the tagged release before installing to confirm your Laravel major is allowed. If your application is on an older Laravel version, Composer may silently keep you on the 1.0.x line unless you refresh the lockfile deliberately.
Does this package log exceptions or report errors to a monitoring service?
No. It is a presentation-only package that replaces Laravel's default error views (403, 404, 500, 503) with branded templates. It does not hook into exception handling, logging, queues, or events, so it will not report anything to Sentry, Flare, or your log stack. Keep using Laravel's logging and your existing monitoring tooling for actual error reporting.
How do I customize the look of the 404 and 500 error pages?
Publish the package views into resources/views/errors and edit them like any other Blade template. Laravel resolves errors/404.blade.php, errors/500.blade.php, and similar files automatically for the matching HTTP status code. Because they are plain Blade views, you can add your logo, brand colors, layout inheritance, and links back to the app without touching package internals.
Will re-publishing the views overwrite my custom error page changes?
Yes, publishing with the --force flag will overwrite files that already exist in resources/views/errors. Publish once, commit the result to version control, and then edit in place rather than re-publishing. If you need to pull in upstream template changes later, diff them manually instead of forcing a publish over your customizations.
Is version 1.1.0 a breaking change from 1.0.x?
The main change in 1.1.0 is a migration to PSR-4 autoloading, which typically means the namespace and directory layout changed from the 1.0.x line. If you only publish views, you are probably unaffected, but if you extended the service provider, referenced package classes directly, or pinned custom views against the old layout, review the upgrade carefully. A namespace change shipped as a minor version is a maintainership signal worth weighing before adopting.
Which HTTP error status codes are covered by this package?
It targets the common server-side error responses, notably 403, 404, 500, and 503, replacing Laravel's default views for those codes. Any code without a package template still falls back to Laravel's built-in error view. If you need a custom page for another status, add your own Blade file in resources/views/errors following Laravel's naming convention.
How do I test that my custom error pages actually render?
Set APP_DEBUG=false locally and hit a route that aborts with the status code you want, such as abort(404) or abort(503). Error page problems usually only appear with debugging disabled, because the Ignition debug screen hides them in development. Add a feature test that asserts the response status and sees the branded content so regressions are caught before production.
Is this package safe to use in production with a single maintainer?
The risk profile is low because the package is purely cosmetic and sits at the application edge with no domain coupling, no persistence, and no queue integration, so it is cheap to remove. The main concern is maintenance velocity: a six-patch gap before 1.1.0 and a structural refactor in a minor release suggest you should pin the version. Publishing the views into your own app and treating the package as a one-time scaffold removes the dependency risk almost entirely.
What are the alternatives to using a Laravel error pages package?
Laravel already ships default error views, and you can override any of them by adding files under resources/views/errors, which is effectively what this package publishes for you. Many teams simply copy branded templates into their app once and skip the dependency, while others use a dedicated error page or exception handling package. If you want no third-party surface at all, hand-written Blade error views are the most durable option.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo