https://github.com/muhdfaiz/laravel-tail-db
Artisan command to monitor realtime sql queries executed by the application
https://github.com/muhdfaiz/laravel-tail-db
database laravel monitoring mysql optimize postgresql sqlite
Last synced: 5 months ago
JSON representation
Artisan command to monitor realtime sql queries executed by the application
- Host: GitHub
- URL: https://github.com/muhdfaiz/laravel-tail-db
- Owner: muhdfaiz
- License: mit
- Created: 2020-11-25T02:27:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T10:56:39.000Z (over 4 years ago)
- Last Synced: 2025-08-27T16:38:04.965Z (10 months ago)
- Topics: database, laravel, monitoring, mysql, optimize, postgresql, sqlite
- Language: PHP
- Homepage: https://laravel-tail-db.muhdfaiz.com/
- Size: 46.9 KB
- Stars: 60
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Laravel Tail DB
[](https://github.com/muhdfaiz/laravel-tail-db/actions)
[](//packagist.org/packages/muhdfaiz/laravel-tail-db)
[](//packagist.org/packages/muhdfaiz/laravel-tail-db)
[](//packagist.org/packages/muhdfaiz/laravel-tail-db)
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](https://laravel-tail-db.muhdfaiz.com/).
### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
### Roadmap
Create desktop app to monitor the sql query.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.