*/ class HospitalUnitFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { $name = fake()->unique()->words(3, true); return [ 'profile_id' => Profile::factory(), 'name' => $name, 'slug' => Str::slug(Str::ascii($name)), 'is_reporting_unit' => false, 'report_input_type' => null, 'is_active' => true, ]; } }