2017 © Pedro Peláez
 

library visitors

log your visitors in db, page hits, and generate visit counter for Laravel 5

image

cjjian/visitors

log your visitors in db, page hits, and generate visit counter for Laravel 5

  • Saturday, April 2, 2016
  • by jcc
  • Repository
  • 1 Watchers
  • 1 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

visitors

modify with https://github.com/weboAp/Visitor, (*1)

Step 1

Just add to composer.json file:, (*2)

{
    "require": {
        "cjjian/visitor": "dev-master"
    }
}

then run, (*3)

composer update

Step 2

Add Cjjian\Visitors\VisitorServiceProvider::class to the list of service providers in app/config/app.php, (*4)

Step 3

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)

Step 5 (Optional)

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)

Usage

Visitor::log();   //log in db visitor ip, geo location, hit counter

The Versions

02/04 2016

dev-master

9999999-dev

log your visitors in db, page hits, and generate visit counter for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

by JiajianChan

laravel log framework counter hits clicks visitors