Have three tables / models:
id - client
id - brand
id - model - brand_id
id - brandmodel_id - client_id
I would like to get a “group by” clients list based on the brands in the cleanest way. Right now, I’m doing it in a dirty way.
So the point is that if I have a client who has three different cars of the same brand, get just one client element.
from Newest questions tagged laravel-5 – Stack Overflow https://ift.tt/2Okwwgf