Skip to content

Commit d372eef

Browse files
committed
fix: test
refs: #100
1 parent fac4406 commit d372eef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/fixtures/FactoryGeneratorTest/post_factory.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55
use Faker\Generator as Faker;
66
use Illuminate\Database\Eloquent\Factories\Factory;
7+
use App\Models\Post;
78

89
class PostFactory extends Factory
910
{
11+
protected $model = Post::class;
12+
1013
public function definition(): array
1114
{
1215
$faker = app(Faker::class);

0 commit comments

Comments
 (0)