FIX: faltaba agregar comuna
This commit is contained in:
@ -16,12 +16,15 @@ $segmentos = json_decode(trim(file_get_contents($filename)));
|
||||
$f = Carbon::today();
|
||||
$lipsum = new LoremIpsum;
|
||||
|
||||
$comunas = ['Santiago', 'Macul', 'Ñuñoa', 'San Miguel', 'Las Condes', 'Estacion Central', 'Pudahuel', 'Lo Barnechea', 'Vitacura', 'Maipu', 'Puente Alto'];
|
||||
|
||||
$proyectos = [];
|
||||
for ($i = 0; $i < 100; $i ++) {
|
||||
$proyecto = [];
|
||||
$proyecto['edificio'] = ucwords($lipsum->words(2));
|
||||
$proyecto['segmento'] = $segmentos[mt_rand(0, count($segmentos) - 1)]->titulo;
|
||||
$proyecto['direccion'] = ucwords($lipsum->words(2)) . ' ' . mt_rand(10, 59999);
|
||||
$proyecto['comuna'] = $comunas[mt_rand(0, count($comunas) - 1)];
|
||||
$proyecto['ciudad'] = 'Santiago, Chile';
|
||||
$proyecto['imagen'] = 'optimus.jpg';
|
||||
$proyecto['valor'] = number_format(mt_rand() / mt_getrandmax() * 10000, 2, ',', '.');
|
||||
|
Reference in New Issue
Block a user