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

checking for not null in extra condition exists validation rule #3087

Closed
sooqini opened this issue Dec 30, 2013 · 4 comments
Closed

checking for not null in extra condition exists validation rule #3087

sooqini opened this issue Dec 30, 2013 · 4 comments

Comments

@sooqini
Copy link

sooqini commented Dec 30, 2013

Docs at http://laravel.com/docs/validation#rule-exists state "Passing NULL as a "where" clause value will add a check for a NULL"

But what about NOT NULL? This used to be possible by passing != as where clause value but commit f791400 broke that functionality.

@bencorlett
Copy link
Contributor

whereNotNull('column')?

@taylorotwell
Copy link
Member

Looks like we need to add a place-holder like "NOTNULL", "!NULL", etc. Something...

@sooqini
Copy link
Author

sooqini commented Dec 31, 2013

I will come up with an implementation of NOTNULL

sooqini added a commit to sooqini/framework that referenced this issue Jan 2, 2014
@taylorotwell
Copy link
Member

Done. NOT_NULL.

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

No branches or pull requests

3 participants