A bit more reading and I figured it.
Just in case someone has the same question, read about Collection's put().
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I finally understood Collections.
However, I am looking to add an attribute (pulled from an external database) to each object of the collection. I will then send the collection to the View.
Any way to do so?
Thank you!
Please or to participate in this conversation.