-
-
Notifications
You must be signed in to change notification settings - Fork 82
Static constructor for Collection/Resource? #54
Comments
Maybe we can provide both? |
Technically, there is nothing to worry about. This "construct-and-chain" is available since 5.4+, the package itself is supporting 5.5.9+. So that makes this only a "sugar coating" of the syntax. Personally, I think both will do just fine. Just like Symfony and Laravel, you can create a TL;DR; +1 for both, using |
I also provide |
This will be made a non-issue with the new API coming as part of #115. |
Chaining a "new Collection" call is a bit awkward because it has to be surrounded in parentheses. I wonder if this syntax ...
... could be improved with something like:
make
is pretty standard, another idea isCollection::of()
(butResource::of()
doesn't work quite as well). Any other ideas/thoughts?The text was updated successfully, but these errors were encountered: