Is there a way to sum relations in Trends?
I have an accessor in my Invoice model that goes through the Lines in order to get the total but I can't use eloquent here as far as I know.
i end up use like so for one of my metrics. you can use eloquent. i was defining as SaleItem::class but then i changed it and now i could filter out with the way i want. you can also use with() method to eager load your relations