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
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