mattiasgeniar/phpunit-query-count-assertions
Add PHPUnit/Pest assertions to count and analyze SQL queries in tests. Catch N+1 issues, duplicate queries, slow queries, missing indexes (EXPLAIN), row count problems, and Laravel lazy loading. Supports Laravel 11/12, Doctrine DBAL 4, and Phalcon 6+.
Catch N+1 queries, full table scans, duplicates, and slow queries in your PHPUnit/Pest tests. Supports Laravel, Doctrine, and Phalcon.
How can I help you explore Laravel packages today?