*/ class ProductFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => 'product ' . fake()->unique()->words(3, true), 'description' => 'TEXT' . fake()->realText(), 'status' => fake()->boolean(75), 'tenant_id' => Tenant::query()->first('id'), ]; } }