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.5] Allow only to accept collection of keys #22804

Merged
merged 2 commits into from
Jan 16, 2018

Conversation

amaelftah
Copy link
Contributor

this PR will allow only method to accept collection of keys:

$collection = collect(['product_id' => 1, 'name' => 'Desk', 'price' => 100, 'discount' => false]);

$filtered = $collection->only(collect(['product_id', 'name']));

@taylorotwell taylorotwell merged commit ff11fd7 into laravel:5.5 Jan 16, 2018
taylorotwell pushed a commit that referenced this pull request Jan 16, 2018
…rue (#22812)

* tag v5.5.29 release notes

* Fix Collection dd() in browser preview window (#22803)

See #22581

* [5.5] Allow only to accept collection of keys (#22804)

* Modify only to accept collection of keys

* Fix missing parentethes

* Allow set cookie secure option when session secure default is true

* Add tests case
Grummfy added a commit to Grummfy/framework that referenced this pull request Jul 11, 2018
Grummfy added a commit to Grummfy/framework that referenced this pull request Jul 11, 2018
Grummfy added a commit to Grummfy/framework that referenced this pull request Jul 11, 2018
symfony-splitter pushed a commit to illuminate/mail that referenced this pull request Jul 15, 2018
taylorotwell pushed a commit to illuminate/mail that referenced this pull request Sep 17, 2018
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