File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
tests/TestingTools/fixture/app Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -436,9 +436,9 @@ Assuming that `Post` class has `createComment` method:
436436``` php
437437class 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```
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments