Aggregate Functions on Related Models Laravel
Sometimes you may need to execute some queries a little complex like counting the number of sales of a book or obtaining the minimum price for a product of a determinate category. To achieve this, we can use aggregate functions like withSum(), withMi...
codewithluis.hashnode.dev2 min read