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 fac4406 commit d372eefCopy full SHA for d372eef
tests/fixtures/FactoryGeneratorTest/post_factory.php
@@ -4,9 +4,12 @@
4
5
use Faker\Generator as Faker;
6
use Illuminate\Database\Eloquent\Factories\Factory;
7
+use App\Models\Post;
8
9
class PostFactory extends Factory
10
{
11
+ protected $model = Post::class;
12
+
13
public function definition(): array
14
15
$faker = app(Faker::class);
0 commit comments