Skip to content

Commit

Permalink
Updated readme [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki authored Jul 23, 2018
1 parent 181f8d5 commit 2ecd64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ $page = Page::find(1);

$user->rate($page, 10);
$user->hasRated($page); // true
$page->averageRating(); // 10.0, as float
$page->averageRating(User::class); // 10.0, as float
```

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.

To update a rating, you can call `updateRatingFor()` method:
```php
Expand Down

0 comments on commit 2ecd64e

Please sign in to comment.