Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.
/ visitorcount Public archive

A simple visitor counter with graph for Laravel

License

Notifications You must be signed in to change notification settings

4ilo/visitorcount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple visitor counter with graph for Laravel

Installation

composer require ovde/visitorcount

For Laravel < 5.5 add the service provider of the package. To do this open your config/app.php file.

Add a new line to the providers array:

Ovde\Visitorcount\VisitorCountServiceProvider::class,

Publish the assets:

php artisan vendor:publish --tag=public --force

Migrate your database:

php artisan migrate

Usage

The folowing views are available to use:

@include("visitorcount::graph")
@include("visitorcount::stats")

Register the countVisit middleware on the routes you want to count visits.

Route::get("/")->middleware("countVisit");