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
As subject, BelongsToOne relation does return desired object instead of collection if we eager load, however it doesn't work with lazy loading. Any idea?
$record = Record->first(); dump($record->group); // return model collection instead of Group object
The text was updated successfully, but these errors were encountered:
As subject,
BelongsToOne
relation does return desired object instead of collection if we eager load, however it doesn't work with lazy loading. Any idea?$record = Record->first(); dump($record->group); // return model collection instead of Group object
The text was updated successfully, but these errors were encountered: