Reservation Test

This commit is contained in:
Juan Pablo Vial
2025-09-09 16:24:58 -03:00
parent e36281d924
commit a0c2f53c54
6 changed files with 48 additions and 96 deletions

View File

@ -9,14 +9,14 @@ class Direcciones extends AbstractSeed
{
$comunas = $this->loadValues('comuna', columns: 'id');
$n = 50;
$n = 100;
$data = [];
for ($i = 0; $i < $n; $i++) {
$row = [
'calle' => $this->faker->streetName,
'numero' => $this->faker->randomNumber(5),
'comuna' => $this->faker->randomElement($comunas),
'extra' => '',
'extra' => $this->faker->optional(0.9, '')->words(2, true),
];
$extraRand = ((int) round(rand() / getrandmax())) === 1;
if ($extraRand) {