blissjaspis/laravel-query-detector

1.0.0 2024-05-01 09:16 UTC

This package is auto-updated.

Last update: 2024-05-02 15:43:19 UTC


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).

Example alert

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.