sourcetoad/rule-helper-for-laravel
Fluent helpers for building Laravel validation rules. Use RuleSet to chain required/unique/max and add custom rules, or Rule for static rule builders. Supports reusable defined rule sets and extras like requiredIfAll/requiredIfAny for complex conditions.
Adopt if:
Look elsewhere if:
For Executives: "This package now fully supports Laravel 13.x and PHP 8.5, making it a future-proof solution for our validation needs. For example, if we’re building a multi-step checkout flow or a configurable SaaS dashboard, we can reuse validation rules instead of rewriting them for every form—saving dev time and reducing errors. The MIT license means no vendor lock-in, and the Laravel ecosystem ensures long-term support. New: Upgrading to Laravel 13 or PHP 8.5 won’t require us to refactor validation logic, reducing migration risks."
For Engineering: *"Rule Helper for Laravel (v6.3.0) now includes:
Pros:
Rule::when('is_pro', 'required', 'subscription_plan')).if statements.Cons:
Recommendation: Prototype for [high-priority feature X] to measure dev time saved. If we’re upgrading Laravel/PHP soon, this package eliminates compatibility concerns."*
How can I help you explore Laravel packages today?