Explorar el Código

get database

allo_data_retrieve^2
Siti Hajar Ibrahim hace 5 años
padre
commit
9d5b47de60
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Http/Controllers/Controller.php

+ 1
- 1
app/Http/Controllers/Controller.php Ver fichero

@@ -157,7 +157,7 @@ class Controller extends BaseController
$dateE = Carbon::createFromFormat('Y-m-d', '2021-01-06');
$end = $dateE->copy()->endOfDay();

$work_order = WorkOrder::whereBetween('updated_at',array($start,$end))->first();
$work_order = WorkOrder::whereBetween('updated_at',array($start,$end))->get();

return $work_order;
}

Cargando…
Cancelar
Guardar