Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdullah Ghanem committed Nov 11, 2015
1 parent 96a9ccc commit fee5510
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,7 @@ $user = User::first();
$post = Post::first();

$rating = $post->rating([
'title' => 'Some title',
'body' => 'Some body',
'rating' => 5,
'rating' => 5
], $user);

dd($rating);
Expand All @@ -61,9 +59,7 @@ dd($rating);
### Update a rating
```php
$rating = $post->updateRating(1, [
'title' => 'new title',
'body' => 'new body',
'rating' => 3,
'rating' => 3
]);
```

Expand Down

0 comments on commit fee5510

Please sign in to comment.