Creando proyecto

This commit is contained in:
Bryam Cesar
2025-08-12 23:57:57 -03:00
parent 4c90b4e3df
commit 44e1da9693
82 changed files with 13823 additions and 30 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Product>
*/
class ProductFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array<string, mixed>
*/
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)
];
}
}