PHPackages                             sweeeeep/l5popularity - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sweeeeep/l5popularity

ActiveLibrary

sweeeeep/l5popularity
=====================

Laravel Package for Tracking popular item in Eloquent models

1.1.0(4y ago)286MITPHPPHP ^7.2

Since Aug 24Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Sweeeeep/l5popularity)[ Packagist](https://packagist.org/packages/sweeeeep/l5popularity)[ Docs](https://github.com/sweeeeep/popularity)[ RSS](/packages/sweeeeep-l5popularity/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (3)Versions (8)Used By (0)

Laravel 5 Popularity
====================

[](#laravel-5-popularity)

Based on [marcanuy/popularity](https://github.com/marcanuy/popularity)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4b3bdb6906508712e6092f63e6c5efc64870080aefae825a655ac24454de4e10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73776565656565702f6c35706f70756c61726974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sweeeeep/l5popularity)[![Total Downloads](https://camo.githubusercontent.com/4daf0d6933f0d69005165cefec9e6c60c3d32fac6bfe3880d36e59adc3af2d89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73776565656565702f6c35706f70756c61726974792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sweeeeep/l5popularity)[![Build Status](https://camo.githubusercontent.com/983e1d6c40a9cf1ec23b58f66bf01dde43bd41cce0a92e57a2e5b39ed3e2ccd4/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73776565656565702f6c35706f70756c61726974792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/sweeeeep/l5popularity)[![StyleCI](https://camo.githubusercontent.com/ab663cd4d3529f76b8c924e41d9d796cd6195186abc5ad2dcd12754957f4cee6/68747470733a2f2f7374796c6563692e696f2f7265706f732f3134353933333537302f736869656c64)](https://styleci.io/repos/145933570)

This is where your description should go. Take a look at [contributing.md](contributing.md) to see a to do list.

Installation
------------

[](#installation)

Via Composer

```
$ composer require sweeeeep/l5popularity
```

Updating your Eloquent Models
-----------------------------

[](#updating-your-eloquent-models)

Your model should use the Popularable traits, which has method `hit()` that you need use

```
