jonpurvis/lawman
Lawman adds automatic validation to Laravel Eloquent models. Define validation rules directly on a model and have them enforced before saving, helping keep model data consistent without repeating validation logic across your app.
Adopt when:
Look elsewhere or skip when:
To executives: Lawman is a small, dev-only Laravel package that turns our route conventions into automated checks. It ships with no runtime code, touches no user-facing behavior, and costs roughly a day of integration time plus a policy conversation. In return, route naming and duplication problems get caught automatically on every pull request instead of by reviewers or by customers. The v5.2.0 release is a routine, non-breaking minor update that adds more built-in checks and refreshes the package's internal tooling — no migration work, no deprecations, safe to take in a normal dependency update. Risk is low and reversible: it is a test dependency, so removing it means deleting a line from composer.json.
To engineering: This is a convention-as-tests package for Laravel. It plugs into the Pest/PHPUnit suite you already run, so CI gains route assertions — names present, no duplicates, controller actions resolve, and similar — without anyone writing bespoke test scaffolding. v5.2.0 is additive: new helpers expand what you can assert, plus package skeleton housekeeping; nothing breaks. The trade-off to weigh is that it is a single-maintainer dependency, so treat it as a CI convenience rather than load-bearing infrastructure, and keep the enforced rule set explicit and version-controlled in your test suite so the checks stay meaningful to us rather than generic.
How can I help you explore Laravel packages today?