https://github.com/haruncpi/laravel-query-log
A lightweight laravel package for logging executed SQL queries, line number and more
https://github.com/haruncpi/laravel-query-log
laravel laravel-developer laravel-framework laravel-package laravel-query-log query-log
Last synced: about 2 months ago
JSON representation
A lightweight laravel package for logging executed SQL queries, line number and more
- Host: GitHub
- URL: https://github.com/haruncpi/laravel-query-log
- Owner: haruncpi
- Created: 2022-02-13T05:42:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-21T04:54:09.000Z (over 1 year ago)
- Last Synced: 2025-03-24T12:39:29.834Z (2 months ago)
- Topics: laravel, laravel-developer, laravel-framework, laravel-package, laravel-query-log, query-log
- Language: PHP
- Homepage: https://laravelarticle.com/laravel-query-log
- Size: 5.86 KB
- Stars: 38
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel Query Log
Log executed Laravel SQL queries and their line number and more!
## Documentation
Get documentation on [laravelarticle.com](https://laravelarticle.com/laravel-query-log)## Sample Preview
text format
```text
url : http://example.test
method : GET
total_query : 3
total_time : 5.69
--------------------sl : 1
query : select * from `students` where `id` = ? and `name` = ?
bindings : 6|Tomas
final_query : select * from `students` where `id` = 6 and `name` = 'Tomas'
time : 4.38
file : C:\www\example\app\Http\Controllers\SiteController.php:10
line : 10sl : 2
query : select * from `students` where `id` = ? and `phone` = ?
bindings : 6|649-768-7305
final_query : select * from `students` where `id` = 6 and `phone` = '649-768-7305'
time : 0.75
file : C:\www\example\app\Http\Controllers\SiteController.php:11
line : 11sl : 3
query : select * from `students` where `id` = ?
bindings : 6
final_query : select * from `students` where `id` = 6
time : 0.56
file : C:\www\example\app\Http\Controllers\SiteController.php:12
line : 12
```## Other Packages
- [Laravel Log Reader](https://github.com/haruncpi/laravel-log-reader) - A simple and beautiful laravel log reader.
- [Laravel H](https://github.com/haruncpi/laravel-h) - A helper package for Laravel Framework.
- [Laravel Simple Filemanager](https://github.com/haruncpi/laravel-simple-filemanager) - A simple filemanager for Laravel.
- [Laravel Option Framework](https://github.com/haruncpi/laravel-option-framework) - Option framework for Laravel.