*/ class AutoFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'marca' => $this->faker->randomElement(['Toyota', 'Ford', 'Chevrolet', 'Nissan', 'Honda']), 'modelo' => $this->faker->randomElement(['Corolla', 'F150', 'Camry', 'Altima', 'Civic']), 'año' => $this->faker->year(), 'color' => $this->faker->colorName(), 'precio' => $this->faker->randomFloat(2, 10000, 50000), ]; } }