Laravel Aggregate In Database

Use when counting, summing or averaging an Eloquent relation or collection: do it in the database (withCount, ->count(), ->sum()), never by looping/hydrating a collection in PHP — and never over an already-paginated set.

techmefr Updated

File contents

techmefr/mentis commit 454d68d8ee

Frequently asked questions

npx get-skill add techmefr/laravel-aggregate-in-database