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.3] Add support for implicit keys in first() and has() #16993

Closed
wants to merge 2 commits into from
Closed

[5.3] Add support for implicit keys in first() and has() #16993

wants to merge 2 commits into from

Conversation

themsaid
Copy link
Member

In case the bag has the following messages:

['user.0.email' => 'email is required']

$messages->first('user.*.email') will return 'email is required'

and $messages->has('user.*.email') will return true.

Currently these two methods don't work with implicit keys, only get() currently works.

@taylorotwell
Copy link
Member

Could you send this to 5.4?

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