*/ class BillKindFactory extends Factory { public $model = BillKind::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'name' => $this->faker->words(3, true), ]; } public function name(string $name): self { return $this->state(['name' => $name]); } }