Releases: onlime/laravel-sql-reporter
Releases · onlime/laravel-sql-reporter
v1.3.3
v1.3.2
v1.3.1
v1.3.0
v1.2.3
- Made datetime format of formatted header configurable and added TZ offset to default format
Y-m-d H:i:s P. - Fix | Prevent duplicate logging when a console command is called from a regular web request (e.g. programmatically executing an Artisan command with
Artisan::call()). In web context, we're now only logging onRequestHandledevent, while in console only onCommandFinishedevent.
v1.2.2
- The
Writerobject now has a staticshouldReportSqlQuery()method to define a custom callback for filtering queries included in theQueryLogWrittenevent. by @pascalbaljet in #4 - The
SqlQueryobject is now areadonlyclass, and all the getter methods have been removed. This is a breaking change. - The
SqlQueryobject now includes the unprepared query and bindings. - Added tests for the reporting mechanism and the
QueryLogWrittenevent - Drops support for 8.1
v1.2.1
v1.2.0
- Feature | Dispatch
QueryLogWrittenevent after writing queries to the log, so that the whole query log can be accessed for further processing, e.g. generating reports/notifications. - Feature | Added auth guard information to log headers.
- Laravel 11 support.
- Migrated to Pest for testing (by @pascalbaljet in #2)
- Added GitHub actions for all supported Laravel and PHP versions.
- Introduced
orchestra/testbenchdev dependency instead of the whole Laravel framework. - Improved Service Provider: fixed the publish tag and use the regular base
ServiceProvider. - Improved
WriterTestby not mocking theConfigclass but using the real config values.
v1.1.0
- Drop Laravel 9 support, require Laravel v10.15 or higher for the new
DB::getRawQueryLog()support. - PHP code style fixes by
laravel/pintv1.10, now using more strict style rules (laravelpreset). - Refactored whole codebase from
DB::getQueryLog()to use the newDB::getRawQueryLog()method, soReplacesBindingsis no longer needed. - Replaced torann/geoip by stevebauman/location for optional GeoIP support.
- Improved username detection in
Formatterheaders, so that it works both with defaultemailfield or customusername()method onUsermodel.