Download the PHP package technoknol/log-my-queries without Composer
On this page you can find all versions of the php package technoknol/log-my-queries. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download technoknol/log-my-queries
More information about technoknol/log-my-queries
Files in technoknol/log-my-queries
Download technoknol/log-my-queries
More information about technoknol/log-my-queries
Files in technoknol/log-my-queries
Vendor technoknol
Package log-my-queries
Short Description Laravel middleware to Log all queries being fired to Laravel log file. Uses Laravel's default monolog library and sniffs Eloquent queries
License MIT
Homepage http://shyammakwana.me
Package log-my-queries
Short Description Laravel middleware to Log all queries being fired to Laravel log file. Uses Laravel's default monolog library and sniffs Eloquent queries
License MIT
Homepage http://shyammakwana.me
Please rate this library. Is it a good library?
Informations about the package log-my-queries
LogMyQueries
Laravel middleware to Log all queries being fired to Laravel log file. Uses Laravel's default monolog library and sniffs Eloquent queries
Install via composer
Run the following command to pull in the latest version:
composer require technoknol/log-my-queries
Add middleware
Add the middleware to the $middleware array in the app/Http/Kernel.php file as follows:
protected $middleware = [
...
\technoknol\LogMyQueries\LogMyQueriesMiddleware::class
];
If you have APP_DEBUG=true and APP_LOG_LEVEL=debug you'll see all executed queries are being added in log file at storage/logs/laravel.log.
Example from laravel.log
[2018-01-02 09:20:26] local.DEBUG: LogMyQueries_STARTED
[2018-01-02 09:20:26] local.DEBUG: select * from "users" where "id" = 102 limit 1
[2018-01-02 09:20:26] local.DEBUG: LogMyQueries_STARTED
[2018-01-02 09:20:28] local.DEBUG: LogMyQueries_STARTED
[2018-01-02 09:20:28] local.DEBUG: select * from "users" where "id" = 102 limit 1
[2018-01-02 09:20:28] local.DEBUG: update "users" set "remember_token" = "1q8nbeh2k6MkneGz31DCJaVJd4H1cBroBBLs6yCfQUoGQaFBSuVLFt7Br7mr" where "id" = "102"
That's it. You're done.
All versions of log-my-queries with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.5.9 || ^7.0
The package technoknol/log-my-queries contains the following files
Loading the files please wait ...