After querying an item $part with its relationship records, I want to log it but the relationship records is recognized as a standad collection instead of its own model Record. How should I fix it ?
@devondahon not sure what the mapping is trying to do. If you intend for $part->records to return a single App\\Models\\Record::class you need to check the "records" relationship declaration in App\\Models\\Part::class, in that case it should be "record" not "records" and it should return a HasOne or BelongsTo relation.