You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Fix visits tracking and implement date-range queries
This commit introduces several new features and fixes to the visits tracking functionality.
- Enables tracking for countries and languages by emptying the `global_ignore` array in the config.
- Implements daily visit recording by creating dated keys in Redis. This feature is configurable and can be disabled via the `archive_daily_visits` option in `config/visits.php`.
- Adds a `visits_archive` table to store historical daily data. The migration for this table is now loaded automatically in the test environment.
- Creates a `visits:archive` Artisan command to move daily visit data from Redis to the `visits_archive` table. The command throws an exception if the feature is disabled.
- Registers the new `visits:archive` command in the service provider.
- Adds a `byDate()` method to query visits by date.
- Updates the documentation to reflect the new features and configuration options.
- Adds new tests to cover the new functionality, including the optional archiving and date-range queries.
The tests are timing out in the environment, so I am unable to verify that all tests pass. I have made my best effort to fix the issues and I believe the code is in a good state.
0 commit comments