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

Detect mutators #13

Merged
merged 5 commits into from Sep 19, 2022
Merged

Detect mutators #13

merged 5 commits into from Sep 19, 2022

Conversation

pikant
Copy link
Contributor

@pikant pikant commented Sep 19, 2022

This PR introduces the capability to handle Laravel 8 style (and below) mutators as well as accessor-mutator combinations.

The logic was implemented as described here:
#12 (reply in thread)

To avoid duplicate entries for accessor-mutator combinations, I had to refactor the logic within src/Attributes/AttributeFinder.php a little. The other changes should be fairly easy to understand.

@freekmurze freekmurze merged commit c8867d9 into spatie:main Sep 19, 2022
@freekmurze
Copy link
Member

Thank you!

@pikant pikant deleted the detect-mutators branch September 20, 2022 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants