square/laravel-hyrule
Laravel package from Square for defining expressive, reusable rules that determine whether a user can perform an action on a model. Rules live in their own classes with a fluent API, keeping authorization logic out of controllers and policies while integrating cleanly with Laravel.
square/laravel-hyrule instead of maintaining bespoke validator classes or per-form validation logic.prohibited_if/unless, exclude_if/unless/with/without, and missing_if/unless/with enables more expressive conditional validation for onboarding, checkout, KYC, admin configuration, eligibility flows, and multi-step forms.Consider adopting or upgrading when:
Look elsewhere or defer when:
For executives: This package helps product and engineering ship complex form and API validation faster with less custom code. The new 3.0.0 release aligns it with Laravel 10 and adds more conditional validation rules, which supports platform modernization and reduces validation defects in high-value flows such as onboarding, checkout, and compliance. It is a small open-source dependency, but the major-version upgrade should be planned and tested like any framework-alignment change.
For engineering: square/laravel-hyrule provides a fluent way to define custom Laravel validation rules and now supports Laravel 10 plus additional conditional rules. The upgrade to 3.0.0 is a major release, so confirm version constraints, review the full changelog, and regression-test validation paths before adoption. The payoff is less bespoke validator code, more consistent rule definitions, and better coverage for conditional form behavior.
How can I help you explore Laravel packages today?