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

feat: support for HigherOrderCollectionProxy #781

Merged
merged 6 commits into from
Feb 8, 2021

Conversation

canvural
Copy link
Collaborator

@canvural canvural commented Feb 7, 2021

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Closes #200

Changes

This PR adds support for HigherOrderCollectionProxy

Larastan now correctly understands, for example

User::all()->each->markAsActive();

returns a collection and markAsActive is called on User class

Breaking changes

None

Copy link
Collaborator

@nunomaduro nunomaduro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@canvural canvural merged commit 96c3c37 into master Feb 8, 2021
@canvural canvural deleted the feat/higher-order-proxy branch February 8, 2021 22:55
@szepeviktor
Copy link
Collaborator

@jkniest
Copy link

jkniest commented Feb 9, 2021

Awesome! Thanks

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.

Higher Order Proxy functions
4 participants