Skip to content

Commit 8f3d284

Browse files
Update 7_visits-lists.md
1 parent 13381ab commit 8f3d284

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/7_visits-lists.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@ visits('App\Post')->top(10);
1212
visits('App\Post')->low(10);
1313
```
1414

15+
Top or Lowest list ids
16+
17+
## Top/Lowest visited items Ids
18+
19+
```php
20+
visits('App\Post')->topIds(10);
21+
```
22+
23+
```php
24+
visits('App\Post')->lowIds(10);
25+
```
26+
27+
28+
1529
### Filter by model attributes
1630

1731
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:

0 commit comments

Comments
 (0)