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

[5.2] Add hasAny and hasAll methods to MessageBag #14151

Merged
merged 4 commits into from
Jun 29, 2016

Conversation

DuckThom
Copy link
Contributor

Same as #14142 but without the optional $true and $false parameters.

hasAll($keys = []): will return true if ALL of the fields in the array are present in the message bag
hasAny($keys = []): will return true if ANY of the fields in the array are present in the message bag

@taylorotwell taylorotwell merged commit c12e8bf into laravel:5.2 Jun 29, 2016
@DuckThom DuckThom deleted the messagebag branch June 29, 2016 17:47
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.

2 participants