We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181f8d5 commit 2ecd64eCopy full SHA for 2ecd64e
readme.md
@@ -73,10 +73,10 @@ $page = Page::find(1);
73
74
$user->rate($page, 10);
75
$user->hasRated($page); // true
76
-$page->averageRating(); // 10.0, as float
+$page->averageRating(User::class); // 10.0, as float
77
```
78
79
-As a second argument, you can pass the rating score. It can either be string, integer or float.
+As a second argument to the `rate()` method, you can pass the rating score. It can either be string, integer or float.
80
81
To update a rating, you can call `updateRatingFor()` method:
82
```php
0 commit comments