libaro/laravel-slow-queries

Laravel Slow QueriesLaravel Slow Queries is a package that allows you to easily log slow queries in your Laravel application. This package logs queries that exceed a configurable time limit and stores them in the database, making it easy to analyze and optimize your database performance.

dev-main 2023-05-05 15:16 UTC

README

Laravel Slow Queries

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel Slow Queries is a package that allows you to easily log slow queries in your Laravel application. This package logs queries that exceed a configurable time limit and stores them in the database, making it easy to analyze and optimize your database performance.

Installation

You can install the package via composer:

composer require libaro/laravel-slow-queries

You can publish and run the migrations with:

php artisan vendor:publish --tag="slow-queries-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="slow-queries-config"

This is the contents of the published config file:

return [
];

You can publish the assets with:

php artisan vendor:publish --tag="slow-queries-assets"

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Development Flow

Please see DEVELOPMENT FLOW for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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