Skip to content
📝 A dev tool to log all queries for laravel application.
PHP
Branch: master
Clone or download
Latest commit 96583c4 Apr 6, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src phpcs Mar 12, 2019
.editorconfig Init commit. Sep 5, 2017
.gitattributes Init commit. Sep 5, 2017
.gitignore Update log format & env switch support. #4 Mar 12, 2019
.php_cs Laravel Query Logger will be enabled when is & some fix Mar 12, 2019
README.md Update README.md Apr 5, 2019
composer.json Init commit. Sep 5, 2017

README.md

Laravel Query Logger

📝 A dev tool to log all queries for Laravel application.

Installing

$ composer require overtrue/laravel-query-logger --dev -vvv

Laravel Query Logger will be enabled when APP_DEBUG is true.

Please keep the --dev option.

Usage

$ tail -f ./storage/logs/laravel.log
[2017-09-05 14:52:14] local.DEBUG: [800μs] select count(*) as aggregate from `discussions` where `discussions`.`deleted_at` is null | GET: http://laravel.app/discussions
[2017-09-05 14:52:14] local.DEBUG: [1.07ms] select * from `discussions` where `discussions`.`deleted_at` is null order by `is_top` desc, `created_at` desc limit 15 offset 0 | GET: http://laravel.app/discussions
[2017-09-05 14:52:14] local.DEBUG: [3.63s] select `tags`.*, `taggables`.`taggable_id` as `pivot_taggable_id`, `taggables`.`tag_id` as `pivot_tag_id` from `tags` inner join `taggables` on `tags`.`id` = `taggables`.`tag_id` where `taggables`.`taggable_id` in ('1', '2', '3', '4', '5', '6', '7', '8') and `taggables`.`taggable_type` = 'App\\Models\\Discussion' order by `order_column` asc | GET: http://laravel.app/discussions
[2017-09-05 14:52:14] local.DEBUG: [670μs] select * from `users` where `users`.`id` in ('1', '2', '4') and `users`.`deleted_at` is null | GET: http://laravel.app/discussions
...

PHP 扩展包开发

想知道如何从零开始构建 PHP 扩展包?

请关注我的实战课程,我会在此课程中分享一些扩展开发经验 —— 《PHP 扩展包实战教程 - 从入门到发布》

License

MIT

You can’t perform that action at this time.