Skip to content

Commit 6159e95

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

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,18 @@ Checks if Eloquent model has specified `HasMany` relation:
409409
$this->assertEloquentHasMany(Post::class, 'comments');
410410
```
411411

412+
Assuming that `Post` class has `comments` relation:
413+
414+
```php
415+
class Post extends Model
416+
{
417+
public function comments()
418+
{
419+
return $this->hasMany(Comment::class);
420+
}
421+
}
422+
```
423+
412424
#### `assertEloquentHasCreateRelationMethod()`
413425

414426
> NOTE: In order to use this assertion, you have to create model factories for both classes.

0 commit comments

Comments
 (0)