Add decorators for eloquent models #50441
Replies: 4 comments 23 replies
-
Hi. This should NOT be the default.
The Attributes are restricting the functionality and generating parallel code interpreting.... bad Idea from my point of view. Analog for declaring properties in the model. OOP exageration that generates waste of money on codding... Symfony way again... |
Beta Was this translation helpful? Give feedback.
-
I used a similar approach, however, not by annotating properties but the model itself, since the columns are technically not on the model but on |
Beta Was this translation helpful? Give feedback.
-
Because it's a PITA as developer having to look in multiple places what is happening and Laravel already includes a lot of "magic". |
Beta Was this translation helpful? Give feedback.
-
Okay guys i read all replies and Possible problems of this implementation:
Possible motivations:
With this conclusions the best solution FOR NOW is make a package . In my opinion, if the generic RFC passes, we could go deeper into this discussion again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I thinking on this:
Motivation:
It's more elegant and i think that can help with intelisense but it's not confirmed yet.
Problems:
References:
Beta Was this translation helpful? Give feedback.
All reactions