Skip to content

Commit 2ecd64e

Browse files
authored
Updated readme [skip ci]
1 parent 181f8d5 commit 2ecd64e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ $page = Page::find(1);
7373

7474
$user->rate($page, 10);
7575
$user->hasRated($page); // true
76-
$page->averageRating(); // 10.0, as float
76+
$page->averageRating(User::class); // 10.0, as float
7777
```
7878

79-
As a second argument, you can pass the rating score. It can either be string, integer or float.
79+
As a second argument to the `rate()` method, you can pass the rating score. It can either be string, integer or float.
8080

8181
To update a rating, you can call `updateRatingFor()` method:
8282
```php

0 commit comments

Comments
 (0)