Skip to content

Commit 52bb5d9

Browse files
committed
fix readme usage argument order
1 parent cf24715 commit 52bb5d9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,13 @@ This will prevent any method name conflicts with core, your custom or other trai
135135
```php
136136
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertExists($model);
137137
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertSame($model, \App\Models\User::first());
138-
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated($post, $comment, 'comments');
139-
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated($post, \App\Models\Comment::class, 'comments', \Illuminate\Database\Eloquent\Relations\HasMany::class);
138+
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated($post, 'comments', $comment);
139+
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated(
140+
$post,
141+
'comments',
142+
\App\Models\Comment::class,
143+
\Illuminate\Database\Eloquent\Relations\HasMany::class
144+
);
140145
```
141146

142147
### Blade

0 commit comments

Comments
 (0)