ovde/visitorcount

This package is abandoned and no longer maintained. No replacement package was suggested.

Visitor statistics for your website

v1.0.3 2018-08-03 15:04 UTC

This package is not auto-updated.

Last update: 2020-12-27 05:20:03 UTC


README

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");