Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic where rules #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Dynamic where rules #16

wants to merge 1 commit into from

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