*/ class TeamFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'name' => $this->faker->unique()->company(), 'user_id' => User::factory(), 'personal_team' => true, ]; } }