Skip to content

Commit

Permalink
ITT: Readme fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Mar 16, 2017
1 parent 6159e95 commit 1a5a20b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,9 @@ Assuming that `Post` class has `createComment` method:
```php
class Post extends Model
{
public function createComment(array $comment)
public function createComment(array $attributes)
{
return $this->comments()->create($comment);
return $this->comments()->create($attributes);
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions tests/TestingTools/fixture/app/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public function comments()
return $this->hasMany(Comment::class);
}

public function createComment(array $comment)
public function createComment(array $attributes)
{
return $this->comments()->create($comment);
return $this->comments()->create($attributes);
}
}

0 comments on commit 1a5a20b

Please sign in to comment.