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

Errors Laravel Package

laravelcollective/errors

LaravelCollective Errors offers flexible error and exception handling for Laravel applications. It supports customizable error views, logging hooks, and Whoops-style debugging, helping developers deliver clearer development feedback and friendlier production error pages with minimal setup.

View on GitHub
Deep Wiki
Context7

Error pages for the Laravel Framework

Frequently asked questions about Errors
Does laravelcollective/errors work with Laravel 10 or 11?
Almost certainly not without intervention. The last release was on 2020-03-02, which places its supported window around Laravel 5.x through 6.x, and its illuminate/support and PHP constraints will likely be rejected by Composer on Laravel 9, 10, or 11. Run composer require laravelcollective/errors --dry-run against your actual lockfile to confirm before planning anything. Installing with --ignore-platform-reqs is not a real integration and leaves you with an unverified fork.
What does laravelcollective/errors actually do?
It is a thin wrapper over Illuminate\Support\MessageBag plus a service provider that shares an $errors instance with Blade views, along with configurable error views and logging hooks. It hooks into Laravel's existing exception handler rather than rebinding the container or swapping facades. The core has(), first(), and get() behavior it exposes is already native to Laravel.
Is laravelcollective/errors still maintained?
No. The most recent release is dated 2020-03-02 and there has been no ongoing maintenance since, which for a Laravel-ecosystem package is a significant red flag. The MIT license and small security surface (no network, filesystem, or deserialization code) limit supply-chain risk, but abandonment is still the headline concern. An unmaintained dependency can quickly become the pin that blocks your next framework major upgrade.
How do I install laravelcollective/errors?
The usual path is composer require laravelcollective/errors, followed by registering the package's service provider if it is not auto-discovered. In practice, start with a dry run on your real lockfile, because the package's illuminate and PHP constraints were written for Laravel 5.x and 6.x. If Composer refuses to resolve, that is the answer: do not force it.
Do I need laravelcollective/errors, or does Laravel handle this natively?
For most applications you do not need it. Laravel has shared the $errors MessageBag into views via ShareErrorsFromSession since 5.0, and has(), first(), and get() are all part of the framework. The only genuinely differentiated feature in the description is configurable message formatting, which is small enough to implement as a view composer or Blade component. If that formatting is the real driver, vendor a few dozen lines into your app instead of inheriting a dead dependency.
Will laravelcollective/errors conflict with Laravel's built-in $errors sharing?
That is a real risk on any version where both mechanisms are active. You can end up with two systems sharing $errors into the same views, and precedence is ambiguous, which can surface as empty or stale error bags in Blade without any exception being thrown. If you must evaluate the package, verify explicitly which instance wins in your views before relying on it.
How do I migrate away from laravelcollective/errors?
Replace the package's $errors sharing with Laravel's own ShareErrorsFromSession middleware, then port any custom message formatting into application code such as a view composer or Blade component. Once views render correctly without the package, remove it from composer.json and run your test suite. This removal path is the recommended outcome for existing dependencies as well as new adoptions.
Is laravelcollective/errors safe to use in production?
The security surface is small: there is no network or filesystem I/O, no deserialization, and it is MIT licensed, so classic supply-chain vectors are muted. The production risks are operational rather than exploit-based: an unmaintained dependency pinning you to an old framework major, and behavioral conflict with the framework's own error sharing. For most teams the safer production choice is native Laravel error handling.
What are the alternatives to laravelcollective/errors for custom error pages in Laravel?
Use Laravel's built-in exception handler with resources/views/errors pages for branded 404 and 500 responses, and add a view composer or Blade component for any custom formatting. For development feedback, Ignition (or Whoops in older versions) covers the debugging experience the package description mentions. All of these are maintained with the framework and avoid an extra Composer dependency.
How should I test laravelcollective/errors if I keep it?
Write feature tests that assert the exact rendered output of your error views and confirm which $errors instance the view receives, since precedence against the framework's sharing is the main failure mode. Cover validation failures, 404s, and unhandled exceptions in both testing and production-like environments. If the package will not install against your Laravel version, stop there rather than testing a forced install.
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.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console