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

Added ability to pass dynamic number of keys for message bag hasAny method #19002

Merged
merged 1 commit into from
Apr 29, 2017

Conversation

joshralph93
Copy link
Contributor

No description provided.

@taylorotwell taylorotwell merged commit f7e9f74 into laravel:5.4 Apr 29, 2017
@projct1
Copy link

projct1 commented May 10, 2017

By the way, will be good if add this feature for Request class, for example:

if ($this->request->has('admin_id') || $this->request->has('order.status_id') || $this->request->has('status_parent_id') || $this->request->has('remind_at')) {
    //so сumbersome
}

if ($this->request->hasAny(['admin_id', 'order.status_id', 'status_parent_id', 'remind_at'])) {
    //сlearly and purely 😄
}

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.

3 participants