datalogix/laravel-validation
A Laravel package that extends the built-in validator with reusable custom validation rules and helpers, helping you organize validation logic and apply consistent rules across forms and requests.
hetu, portuguese_nif, public_domain_suffix, mimetype, uploaded, contains_count, between_exclusive). Adopting the package avoids hand-rolling error-prone validators for tax IDs, national identity codes, file types, and domain suffixes. The patch release lowers the “abandoned dependency” risk that would otherwise favor a build.en and pt_BR messages for 7 rules that previously surfaced raw translation keys (e.g., validation.hetu) to end users. This directly supports launches or growth in Portuguese-speaking markets and improves English-language UX. Localization coverage is a gating item for i18n milestones; this release closes a visible gap.:value, :values, :min, :max) reduces support load and enables product/design to author precise error copy per rule without reverse-engineering the library. Useful for content and UX writing decisions.attribute message is low risk but should be verified against any custom translation overrides.Adopt when:
hetu, portuguese_nif, public_domain_suffix, mimetype, uploaded, contains_count, between_exclusive) rather than generic core validation.en or pt_BR for those rules; v4.0.1 makes them human-readable out of the box.Look elsewhere or proceed cautiously when:
en and pt_BR; other locales will still surface raw keys for these rules, requiring your own translation work.hetu, portuguese_nif); evaluate whether OSS governance meets your review bar.attribute message — verify before upgrading (low likelihood, but check).Executive summary: This is a small, actively maintained open-source Laravel package that supplies specialized validation rules (tax IDs, national identity codes, file types, domain suffixes) plus localized English and Brazilian Portuguese error messages. The v4.0.1 release is a maintenance patch: it fixes raw error keys for seven rules, removes dead code, and improves documentation. Adopting it is a low-cost alternative to building and maintaining these validators in-house, with no breaking changes in this release.
Engineering summary: v4.0.1 fixes missing en and pt_BR messages for between_exclusive, contains_count, hetu, mimetype, portuguese_nif, public_domain_suffix, and uploaded; removes the unused attribute message because Laravel’s validateAttribute() shadows the Respect rule; and documents placeholder parameter usage. Upgrade path is a patch bump. Run the test suite, spot-check translation overrides for the removed attribute key, and verify error output in both locales. No API changes expected.
Product/Design summary: End users in English and Brazilian Portuguese locales will now see readable validation errors instead of raw keys like validation.hetu. This improves form UX for onboarding, KYC, and file-upload flows without requiring design or copy changes — and it removes a custom translation workaround from the backlog.
How can I help you explore Laravel packages today?