Skip to content

Dynamic where rules#16

Open
leitom wants to merge 1 commit intolaracasts:masterfrom
leitom:master
Open

Dynamic where rules#16
leitom wants to merge 1 commit intolaracasts:masterfrom
leitom:master

Conversation

@leitom
Copy link

@leitom leitom commented Aug 30, 2014

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]);

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
Copy link
Author

leitom commented Sep 5, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant