Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:5.4from
joshralph93:5.4
Apr 29, 2017
Merged

taylorotwell merged 1 commit into
laravel:5.4from
joshralph93:5.4

Conversation

@joshralph93

Copy link
Copy Markdown
Contributor

No description provided.

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

projct1 commented May 10, 2017

Copy link
Copy Markdown

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