Simple site traffic analytics for Laravel.
This package uses a simple middleware to track page requests, and stores them in your application's database. You can easily exclude ips, envs, uris, and user agents, by adding them to the simple-stats config file after it's published.
You can install the package via composer:
composer require arnehendriksen/laravel-simple-stats
The package will automatically register itself.
You can publish the config file with:
php artisan vendor:publish --provider="arnehendriksen\LaravelSimpleStats\SimpleStatsServiceProvider"
Next, run the migrations:
php artisan migrate
To begin tracking page requests, add the following middleware to your 'web' middleware group: