blissjaspis / laravel-query-detector
Laravel N+1 Query Detector
Requires
- php: ^8.1
- illuminate/database: ^10.0 || ^11.0
- illuminate/support: ^10.0 || ^11.0
Requires (Dev)
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^8.0 || ^9.0
- phpunit/phpunit: ^10.0 || ^11.0
README
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).
History
This repository is a fork of beyondcode/laravel-query-detector. Why forked? The fork was created because the original package hadn't been updated to support Laravel 11, leaving users uncertain about its future compatibility. By forking the repository, aim to ensure that this essential package remains up-to-date and compatible with the latest Laravel versions.
Compatibility
This package only compatible with Laravel version 10 and above and there are no plans to support below that. This is to ensure easy maintenance of this package.
Installation
You can install the package via composer:
composer require blissjaspis/laravel-query-detector --dev
The package will automatically register itself.
Documentation
On going...
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 bliss@jaspis.me instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.