eloquent computed attributes in laravel 9 #42599
Unanswered
patrik-csak
asked this question in
Q&A
Replies: 2 comments 4 replies
-
@driesvints I'm wondering this too, can you elaborate the change? Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
-
@driesvints Do you have any update on this? Is the old method (going to be) deprecated? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
the docs for laravel 8.x contain the following (source) :
however, this section has been removed from the docs for laravel 9.x (source)
the following appears to work for me :
i'm wondering why this use-case has been removed from the docs and / or if there's another officially recommended way of implementing computed attributes
Beta Was this translation helpful? Give feedback.
All reactions