New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

beyondcode/laravel-query-detector

Laravel N+1 Query Detector
8,582,272 2,060
Install
composer require beyondcode/laravel-query-detector
Latest Version:2.3.0
PHP:^7.1 || ^8.0
Laravel:5 – 13
License:MIT
Last Updated:Mar 20, 2026
Links: GitHub  ·  Packagist
Maintainer: beyondcode

Laravel N+1 Query Detector

Latest Version on Packagist Total Downloads

The Laravel N+1 query detector helps you to increase your application's performance by reducing the number of queries it executes. This package monitors your queries in real-time, while you develop your application and notify you when you should add eager loading (N+1 queries).

Example alert

Installation

You can install the package via composer:

composer require beyondcode/laravel-query-detector --dev

The package will automatically register itself.

Documentation

You can find the documentation on our website.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

beyondcode/laravel-dump-server

Symfony Var-Dump Server for Laravel

45,900,930 1,554
beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

2,660,663 572
beyondcode/laravel-er-diagram-generator

Generate ER diagrams from your Laravel models.

1,718,789 2,021
beyondcode/laravel-mailbox

Handle incoming emails in your Laravel application.

1,363,057 1,135

Version History

Version Released PHP Laravel License
2.3.0 ^7.1 || ^8.0 ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0 MIT
2.2.0 ^7.1 || ^8.0 ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0 || ^11.0 || ^12.0 MIT
2.1.0 ^7.1 || ^8.0 ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0 || ^11.0 || ^12.0 MIT
2.0.0 ^7.1 || ^8.0 ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0 || ^11.0 MIT
1.8.0 ^7.1 || ^8.0 ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0|^10.0 MIT