-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support for CastsInboundAttributes #1329
Add support for CastsInboundAttributes #1329
Conversation
7d6df5b
to
50b3c55
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice PR, LGMT!
@barryvdh IMHO good to merge!
50b3c55
to
cd15a3c
Compare
cd15a3c
to
dcc7bb2
Compare
Sure, I have rebased the code again. I'm willing to help testing PR's if that's the current bottleneck of this repo. |
I think this is always welcome, I'm definitely not vetting PRs enough whose features I don't know well / not use. Ultimate it's up to @barryvdh for merging and I try to assist where time permits. Technically I've the ability to merge stuff, but we've a social agreement that he's the decision maker. For this particular PR, I've no doubts about the technical part and my approval+merge still stands 😄 |
* Add support for CastsInboundAttributes * Update changelog Co-authored-by: Simon Verwaard <[email protected]>
* Add support for CastsInboundAttributes * Update changelog Co-authored-by: Simon Verwaard <[email protected]>
Summary
This PR adds support for custom cast classes that implement the CastsInboundAttributes interface ( https://laravel.com/docs/9.x/eloquent-mutators#inbound-casting). Currently the Cast class will incorrectly end up as return value of the attribute.
Type of change
Checklist
composer fix-style