*/ protected $model = Notice::class; /** * Define the model's default state. * * @return array */ public function definition(): array { return [ "title" => fake()->word(), "message" => sprintf("

%s

", fake()->text(\rand(20, 40))), "type" => fake()->randomElement(NoticeTypeEnum::cases()), ]; } }