I've not tested non int relations, but I doubt it will cause an issue - as long as they are unique obviously.
It could be the way you are querying the data. When you use user() vs user, different methods are used.
Try...
\Profile::find(1)->user->related // do you get any results with this?
T2theC said:
I've not tested non int relations, but I doubt it will cause an issue - as long as they are unique obviously.
It could be the way you are querying the data. When you use user() vs user, different methods are used.
Try...
\Profile::find(1)->user->related // do you get any results with this?
Thank you, I didn't notice that variable presentation should be used when calling a relationship
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community