muhdfaiz/laravel-tail-db

Provide artisan command to monitor realtime database query executed from the application. Able to automatically run explain command for each of query received.
27,662 58
Install
composer require muhdfaiz/laravel-tail-db
Latest Version:1.1.3
PHP:^7.0|^8.0
License:MIT
Last Updated:Oct 5, 2021
Links: GitHub  ·  Packagist
Maintainer: muhdfaiz

Laravel Tail DB

tests Version Total Downloads License

An artisan command to monitor, troubleshoot and optimize SQL query using console.

Features

  • Monitor SQL query. Display Realtime SQL query executed from application in the console.

  • Optimize SQL query. Automatically run explain command and output to console.

  • Detect slow SQL query. Highlight slow SQL query according to your config.

Requirements

  • PHP: ^7.0
  • Laravel: ~5.5,~5.6,~5.7,~5.8,~6.0,~7.0,~8.0
  • Lumen

Installation

composer require muhdfaiz/laravel-tail-db

Publish Config File

php artisan vendor:publish --provider="Muhdfaiz\LaravelTailDb\TailDatabaseServiceProvider" --tag="tail-db-config"

Usage

php artisan tail:db

Documentation

For detail of installation instructions, in-depth usage, please take a look at the documentation.

Changelog

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

Roadmap

Create desktop app to monitor the sql query.

Contributing

Please see CONTRIBUTING for details.

License

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

Related Packages

illuminated/db-profiler

Database Profiler for Laravel Web and Console Applications.

244,543 169
spatie/laravel-tail

Easily tail application logs

2,730,701 749
libern/laravel-sql-logging

Laravel 5 package for logging SQL queries.

4,598 0
oscaragcp/sql-logging

Laravel 5 package for logging SQL queries.

120 2