Skip to content

Artisan command to monitor realtime sql queries executed by the application

License

Notifications You must be signed in to change notification settings

muhdfaiz/laravel-tail-db

Repository files navigation

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.