Skip to content

Commit

Permalink
fix readme usage argument order
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Mar 10, 2021
1 parent cf24715 commit 52bb5d9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,13 @@ This will prevent any method name conflicts with core, your custom or other trai
```php
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertExists($model);
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertSame($model, \App\Models\User::first());
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated($post, $comment, 'comments');
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated($post, \App\Models\Comment::class, 'comments', \Illuminate\Database\Eloquent\Relations\HasMany::class);
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated($post, 'comments', $comment);
\Astrotomic\PhpunitAssertions\Laravel\ModelAssertions::assertRelated(
$post,
'comments',
\App\Models\Comment::class,
\Illuminate\Database\Eloquent\Relations\HasMany::class
);
```

### Blade
Expand Down

0 comments on commit 52bb5d9

Please sign in to comment.