Most Laravel developers know about:
withCount()
withSum()
withMax()But very few know all of them are powered by one underrated method:
withAggregate()It can even fetch a single relationship column
without loading the full model.
Pretty elegant Laravel feature.