Skip to content

Commit fee5510

Browse files
author
Abdullah Ghanem
committed
Update README.md
1 parent 96a9ccc commit fee5510

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ $user = User::first();
5050
$post = Post::first();
5151

5252
$rating = $post->rating([
53-
'title' => 'Some title',
54-
'body' => 'Some body',
55-
'rating' => 5,
53+
'rating' => 5
5654
], $user);
5755

5856
dd($rating);
@@ -61,9 +59,7 @@ dd($rating);
6159
### Update a rating
6260
```php
6361
$rating = $post->updateRating(1, [
64-
'title' => 'new title',
65-
'body' => 'new body',
66-
'rating' => 3,
62+
'rating' => 3
6763
]);
6864
```
6965

0 commit comments

Comments
 (0)