Support the ongoing development of Laravel.io →

habibjutt

Joined 23 Mar 2017

Statistics

Threads 1
Replies 1
Solutions 1
Articles 0

Trying to get property of non-object from eloquent Relationship

I have used a relationship that returns data but when i use it it throws error "Trying to get p...

0 Likes
1 Replies
Solved
replied 7 years ago

Trying to get property of non-object from eloquent Relationship

I solved it. I was using same name for relationship and foreach variable.

0 Likes
Solved

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.