You must distinguish
property call from
method call on the relation:
// dynamic property call $model->relation; // related model / collection // equals to: $model->relation()->getReults(); // while this: $model->relation(); // returns relation Object
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.