Count Models With the Laravel Visits Package

Laravel Visits is a package by Bader Almutairi for attaching counters to any model to track visits with tags. The main features this package provides, include the following: The basic usage for counting models includes the following methods for incrementing and decrementing among others: Once youve collected counter data for your model, you can retrieve and filter results with the following: You can also collect other interesting data about country and referrer if you want a quick analytics tool for tracking models: The geo data for the country functionality is provided through the Torann/laravel-geoip package.

Read Full Article at

Tags: , , , , , , ,