-
Thanks to Laravel, we often can rely on the service container to properly instantiate classes and sometimes also calling methods. On the other hand, attributes can help us, move logic away from a method or class in-order to keep them simple yet versatile. Unfortuantely, unlike in other languages they are not automatically executed, so there has to be some kind of wrapper in order to do so. Something that would have been a hassle if it wasn't for Laravel, because that's where the service container would come in handy, since this is, in my opinion, something that exactly falls under its definition. So if we could implement a way to identify attributes and then call a method on them (let's say |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is solved through #51934 |
Beta Was this translation helpful? Give feedback.
This is solved through #51934