Download the PHP package ngmy/laravel-query-log-tracker without Composer
On this page you can find all versions of the php package ngmy/laravel-query-log-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ngmy/laravel-query-log-tracker
More information about ngmy/laravel-query-log-tracker
Files in ngmy/laravel-query-log-tracker
Package laravel-query-log-tracker
Short Description The Laravel package which log all executed queries.
License MIT
Informations about the package laravel-query-log-tracker
Laravel Query Log Tracker
The Laravel package which log all executed queries.
Demo
![]()
Features
Laravel Query Log Tracker has the following features:
- Log all executed queries with the following items:
- SQL with bound parameters
- Bind parameters
- Execution time in milliseconds
- Connection name
- Disable/Enable query logging at runtime
- More configurations:
- Log level
- Exclude patterns
- Channels
Requirements
Laravel Query Log Tracker has the following requirements:
- PHP >= 7.3
- Laravel >= 6.0
Installation
Execute the Composer require command:
This will update your composer.json file and install this package into the vendor directory.
If you don't use package discovery, add the service provider to the providers array in the config/app.php file:
If you don't use package discovery, add the alias to the aliases array in the config/app.php file:
Publishing Configuration
Execute the Artisan vendor:publish command:
This will publish the configuration file to the config/ngmy-query-log-tracker.php file.
You can also use the tag to execute the command:
You can also use the service provider to execute the command:
Usage
Log Queries
Execute queries with Laravel. That's all.
Disable Log
There are two ways to disable log.