Browse Source

get database

allo_data_retrieve^2
Siti Hajar Ibrahim 4 years ago
parent
commit
9d5b47de60
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Controller.php

+ 1
- 1
app/Http/Controllers/Controller.php View File

@@ -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;
}

Loading…
Cancel
Save