Laravel Visitor Counter
ami-hp/laravel-eye has the ability to record your website's Daily Views in database by only two queries per day. The trick is in using Laravel's Cache and Cron Job.
So just remember this: DO NOT FLUSH THE CACHE.
List of contents
Install via Composer
$ composer require ami-hp/laravel-eye
Ignore this If you are using
Laravel 5.5 or higher; you don't need to include the provider and alias. (Skip to b)
config/app.phpfile add these two lines.
// In your providers array. 'providers' => [ ... Ami\Eye\EyeServiceProvider::class, ], // In your aliases array. 'aliases' => [ ... 'Payment' => Ami\Eye\Facade\Eye::class, ],
Publish files via Artisan
$ php artisan vendor:publish --provider=Ami\Eye\EyeServiceProvider
How To Use Laravel-Eye :