*/ class SettingsFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'title' => fake()->unique()->monthName(), 'color' => fake()->unique()->hexColor(), 'items_by_line' => \random_int(3, 6), ]; } }