dev-master
9999999-devlog your visitors in db, page hits, and generate visit counter for Laravel 5
MIT
The Requires
The Development Requires
by JiajianChan
laravel log framework counter hits clicks visitors
log your visitors in db, page hits, and generate visit counter for Laravel 5
modify with https://github.com/weboAp/Visitor, (*1)
Just add to composer.json file:, (*2)
{ "require": { "cjjian/visitor": "dev-master" } }
then run, (*3)
composer update
Add
Cjjian\Visitors\VisitorServiceProvider::class
to the list of service providers in app/config/app.php, (*4)
Migrate the Visitor Table Run, (*5)
php artisan vendor:publish
then, (*6)
php artisan migrate
to migrate visitor table, (*7)
the config.php will be copied to /config at the same time, (*8)
/config/visitor.php costumize it accordinly, (*9)
Visit http://dev.maxmind.com/geoip/geoip2/geolite2/, (*10)
download GeoLite2-City.mmdb, (*11)
place it in (create the geo directory), (*12)
storage/geo/ or where ever you want just adjust the package config to reflect the new location, it's used to geo locate visitors, (*13)
Visitor::log(); //log in db visitor ip, geo location, hit counter
log your visitors in db, page hits, and generate visit counter for Laravel 5
MIT
laravel log framework counter hits clicks visitors