Forum Eloquent Eloquent Relationships
I have a User Model with "Shifts" Relation.
$user = User::find(1); $data = $user->shifts; return $user;
in above case why user is returned with shifts relation ? I just called shifts i didn't assigned shifts to it
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
Eloquent Relationships
I have a User Model with "Shifts" Relation.
$user = User::find(1); $data = $user->shifts; return $user;
in above case why user is returned with shifts relation ? I just called shifts i didn't assigned shifts to it