I'm new to Laravel and still getting my head around Eloquent. I have two models (A, B) with a many-to-many relationship (belongsToMany in both models) with the following fields:
A: id, name, text, etc..
B: id, name, description, info, etc...
A_B: id, A_id, B_id
When retrieving an object of 'A', I just want to retrieve the 'id' and 'name' of its related 'B', rather than the entire 'B' objects - as these could be large. Is a way to retrieve only specific columns from a related model, or would it be better to separate my tables so that 'id' and 'name' are on their own?