-
Notifications
You must be signed in to change notification settings - Fork 11.3k
[Proposal] Eloquent Collections functional enhancements #21
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
Comments
Good ideas. Will look at implementing them soon. |
Very nice, I like it. +1 |
@taylorotwell Maybe can you make an interface in |
A huge +1 to this, a very clean way to avoid a ton of ugly array methods and loops. |
+1 Nice nice! |
A lot of the methods that could be really useful for collections can be found in my Underscore package if you want ideas or if this pull is rejected. |
Hi @Anahkiasen I was talking to Taylor the other evening about the possibility of this. We will see what happens :) thanks for your work on that! |
Implemented |
Should the collection be mutated? |
Apply fixes from StyleCI
Propose to add the following interface to Collection class
This should allow for easier manipulation of collections with closures
These functions are well known and there use should be reasonably easy to guess. An example implementation might look like the following(obviously will need to be adjusted for Laravel coding standards if approved to move forward)
The text was updated successfully, but these errors were encountered: