activismebe/laravel-form-helpers
A Laravel package of helpers for building and handling HTML forms, with utilities that simplify common form tasks like opening forms, generating fields, and working with submitted input. Lightweight and easy to drop into existing Blade views.
ValidationException into clean, consistently formatted errors for views and (possibly) APIs. It informs the decision, but the answer it points to is "build in-house, don't buy."@if($errors->has(...)) blocks. The underlying need is legitimate; this specific implementation is not the vehicle.Consider only if all of the following are true:
Look elsewhere — or build — when any of these apply:
FormRequest, $errors bag, @error directive, and ValidationException/exception-handler rendering already cover ~90% of this package's value. A ~50-line internal helper plus a Blade error component closes the gap.ValidationException::withMessages, API Resources, and a single JSON error envelope — don't inherit a 2017 view-oriented helper into a JSON contract.aria-invalid, aria-describedby, and field-level error slots belong in your component library, not a third-party trait.Recommendation: do not adopt as a dependency. Reimplement the pattern internally (~1–2 engineer-days) or rely on native Laravel.
FormRequest for validation, the shared $errors bag and @error directive for Blade, and a single exception-rendering path for JSON. Where repetition remains, extract one internal trait and one Blade component with tests. If any legacy module already uses this package, schedule its removal alongside the next framework upgrade rather than patching it.How can I help you explore Laravel packages today?