laracasts / Validation

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

Dynamic where rules #16

Open leitom opened 10 years ago

leitom commented 10 years ago

Allow for dynamic where rules example:

'email' => 'exists:staff,email,account_id,1'

rule will be: 'email' => 'exists:staff,email,account_id,{account_id}’

via ->validate($formData, [‘account_id’ => 1]);

leitom commented 9 years ago

This is not needed for laravel 4.3 because of the request classes, but for every one prior to 4.3 this could be handy.