quantumh / laravel-visits
Track visits on a Laravel application
Requires
- php: ^8.2|^8.3|^8.4|^8.5
- asika/agent: ^2.7
- geoip2/geoip2: ^2.0|^3.0
- laravel/framework: ^10.0|^11.0|^12.0|^13.0
- simplestats/referer-parser: ^1.1
- stevebauman/location: ^6.4|^7.0
- ua-parser/uap-php: ^3.9
Requires (Dev)
- phpunit/phpunit: ^9.5|^10.0|^11.0|^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-08-31 10:46:46 UTC
README
Register all visits on your Laravel app
Installation
You can install the package via composer:
composer require quantumh/laravel-visits
The package will automatically register itself.
You can publish and run the migrations with:
php artisan vendor:publish --tag="quantum-visits-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="quantum-visits-config"
php artisan vendor:publish --tag="quantum-location-config"
If you are using MaxMind services: Add to .env file the license key for MaxMind:
MAXMIND_LICENSE_KEY={your_license_key}
MAXMIND_USER_ID={your_user_id}
MAXMIND_WEB_SERVICE_ENABLED=true/false
Add to your Console/Kernel.php the following command to have the MaxMind offline database updated:
$schedule->command('location:update')->weekly();
Add this key on your phpunit.xml to avoid make the test failing due to the visits.
<env name="TRACKER_VISITS_ENABLED" value="false"/>
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- [Carlos Rodriguez]
- [David Vazquez]
License
The MIT License (MIT). Please see License File for more information.