*/ class ProductFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'nombre' => $this->faker->sentence(3), 'marca'=> $this->faker->randomElement(['Cube','Giant','Megamo','KTM','MMR','Liv','Ghost','Lapierre']), 'modelo'=> $this->faker->bothify('????-####'), 'rodado'=> $this->faker->numberBetween(12,30), 'color'=> $this->faker->safeColorName(), 'tipo'=> $this->faker->word(), 'descripcion'=> $this->faker->text(), 'precio'=> $this->faker->randomFloat(2,100,200) ]; } }