# Visits Lists

Top or Lowest list per model type

# Top/Lowest visited items per model


# Filter by model attributes

You can get only some of the top/low models by query where clause. For example if Post model has shares & likes attributes you can filter the models like this:

visits('App\Post')->top(10, [['likes', '>', 30], ['shares', '<', 20]]);

or just ...

visits('App\Post')->top(10, ['likes' => 20]);

# Uncached list


Note: you can always get uncached list by enabling alwaysFresh from config/visits.php file.

# By a period of time


Note supported periods can be found in periods-options