laracasts / Validation

Easy form validation.
https://packagist.org/packages/laracasts/validation
MIT License
150 stars 37 forks source link

Allow for the use of nested rules #21

Open JacobBennett opened 9 years ago

JacobBennett commented 9 years ago

Allowing for nested rules and then utilizing those rules by setting a context on the validator allows you to use the same validator class for instances where rules only differ slightly. For example in the case of creating a user vs updating a user.

Tests and Documentation included in PR.