We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4070965 commit 7b9886fCopy full SHA for 7b9886f
tests/fixtures/factories/post.php
@@ -8,7 +8,7 @@
8
$factory->define(Post::class, function (Faker $faker) {
9
return [
10
'title' => $faker->sentence(4),
11
- 'author_id' => $faker->randomDigitNotNull,
+ 'author_id' => factory(\App\Author::class),
12
'content' => $faker->paragraphs(3, true),
13
'published_at' => $faker->dateTime(),
14
'word_count' => $faker->randomNumber(),
0 commit comments