tsungsoft/error-message
A lightweight Laravel package for managing and returning consistent error messages. Simplify validation and API error responses with helpers that keep your output uniform across controllers, exceptions, and JSON endpoints.
Consider it only as read-only source material:
Look elsewhere (or build) when:
Text/HTML field, a custom card, or Laravel's native validation error bag plus Nova's notification/toast system will solve most of this with zero new dependencies.To executives: We evaluated a community add-on for our admin panel. It's a single-purpose UI field, last updated in 2019, with two GitHub stars and no downstream users. Adopting it would add an unmaintained dependency to our stack for a cosmetic gain. Recommendation: do not adopt; do not budget for it. If the capability is worth having, we build it ourselves in about a day and own it outright.
To engineering: Treat this repo as a reference implementation, not a dependency. A local Nova field that renders validation and domain-rule failures in the record form is roughly 40–80 lines plus a test; that version stays compatible with our Nova version, ships with our CI, and dies cleanly if we change admin stacks. Fallback if we don't want custom code at all: a read-only Nova Text field or a custom card driven by our existing error bag costs near zero and covers 80% of the need.
Bottom line: the package's only real value is the idea, and the idea is cheap to reproduce. Opportunity here is an internal one-day task, not a procurement decision.
How can I help you explore Laravel packages today?