Download the PHP package combindma/laravel-popularity without Composer
On this page you can find all versions of the php package combindma/laravel-popularity. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download combindma/laravel-popularity
More information about combindma/laravel-popularity
Files in combindma/laravel-popularity
Package laravel-popularity
Short Description A Laravel package for tracking popular entries(by Models) of a website in a certain time
License MIT
Homepage https://github.com/combindma/laravel-popularity
Informations about the package laravel-popularity
A Laravel package for tracking popular entries(by Models) of a website in a certain time
With Laravel Popularity Package you can Track your most popular Eloquent Models based on unique hits in a time range and then sort by popularity in a time frame.With Laravel Popular Package you can Track your most popular Eloquent Models based on unique hits in a time range and then sort by popularity in a time frame.
Installation
You can install the package via composer:
You can publish and run the migrations with:
Usage
Use the visitable trait on the model you intend to track
This is how you create a visit (visits are not duplicated for a daily timeframe):
Changing the timeframe for creating visits with the same data:
Getting the records by the most visited
Testing
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Combind
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-popularity with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^10.0|^11.0