You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shouldn't the user_id and role_id attributes returned in 'role' key, right?
Role key should only contain the record from roles table. user_id and role_id is the part of pivot table i.e; role_user and should not be in role but in role.pivot.
Describe the bug
When getting relationship result using
with_
it gives wrong information about related records.To Reproduce
Current output
Expected output
DIFF:
The text was updated successfully, but these errors were encountered: