Skip to content

Commit

Permalink
fix variable name (laravel#6490)
Browse files Browse the repository at this point in the history
Co-authored-by: Erik Araujo <contact@erikaraujo.com>
  • Loading branch information
erikaraujo and erikaraujo authored Oct 13, 2020
1 parent 5fca8e1 commit 65f6362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database-testing.md
Original file line number Diff line number Diff line change
@@ -487,7 +487,7 @@ Polymorphic "many to many" relationships may be created just like non-polymorphi
use App\Models\Tag;
use App\Models\Video;

$users = Video::factory()
$videos = Video::factory()
->hasAttached(
Tag::factory()->count(3),
['public' => true]
@@ -496,7 +496,7 @@ Polymorphic "many to many" relationships may be created just like non-polymorphi

Of course, the magic `has` method may also be used to create polymorphic "many to many" relationships:

$users = Video::factory()
$videos = Video::factory()
->hasTags(3, ['public' => true])
->create();

0 comments on commit 65f6362

Please sign in to comment.