Skip to content

Commit 1a5a20b

Browse files
committed
ITT: Readme fixes.
1 parent 6159e95 commit 1a5a20b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,9 @@ Assuming that `Post` class has `createComment` method:
436436
```php
437437
class Post extends Model
438438
{
439-
public function createComment(array $comment)
439+
public function createComment(array $attributes)
440440
{
441-
return $this->comments()->create($comment);
441+
return $this->comments()->create($attributes);
442442
}
443443
}
444444
```

tests/TestingTools/fixture/app/Post.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public function comments()
1414
return $this->hasMany(Comment::class);
1515
}
1616

17-
public function createComment(array $comment)
17+
public function createComment(array $attributes)
1818
{
19-
return $this->comments()->create($comment);
19+
return $this->comments()->create($attributes);
2020
}
2121
}

0 commit comments

Comments
 (0)