All notable changes to laravel-route-statistics
will be documented in this file.
- Add PHP 8.4 compatibility
- Add route parameters as separate DB field
- Add config for which model to use in the
RouteStatistic
modelsuser()
relationship
- Add second-level aggregation and make sure that microseconds is always set to 0
- Add Laravel 11 compatibility
- Add PHP 8.3 compatibility
- Update
bilfeldt/laravel-request-logger
to version 3
- Add support for PHP 8.1
- Add queued logging
- Use model 'casts' property instead of the depricated
dates
property
- Add support for PHP 8.2
- Minimum PHP requirement 8.2
- Add support for Laravel 10.*
- Minimum Laravel requirement 10.0
- Add query scopes
whereApi
andwhereWeb
to theRouteStatistics
model. - Add a new
route:stats
artisan command to show statistics of all logged routes. - Add a new
route:unused
artisan command to show all routes without any logs.
- First production ready release
- Rename field
code
tostatus
(breaking change) - Cast date field to Carbon (breaking change)
- Remove the facade and listener and instead rely on the
bilfeldt/laravel-request-logger
package for actual logging. - Remove
RouteStatisticInterface
in favor of\Bilfeldt\RequestLogger\Contracts\RequestLoggerInterface
- Remove attributes from log method
- Rename \Bilfeldt\LaravelRouteStatistics\Http\Middleware\RouteStatistics to RouteStatisticsMiddleware
- Set minimum Laravel requirement to ^8.50
- Note that this release contains breaking changes if one interacting with the facade, model, listener or interface directly but for those simply relying on the default macros and middleware there is no problem updating.
- Fix issue with Factory
- Fix issue with event/listener registration
- Implement usage of facade and singleton class instead of adding data to the request input
- Fix issue with publishing of config and migration
- initial release