Browse Source

get database

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

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

@@ -151,10 +151,10 @@ class Controller extends BaseController

public function getDatabase(Request $request)
{
$dateS = Carbon::createFromFormat('Y-m-d', '2020-01-06');
$dateS = Carbon::createFromFormat('Y-m-d', '2021-01-06');
$start = $dateS->copy()->startOfDay();

$dateE = Carbon::createFromFormat('Y-m-d', '2020-01-06');
$dateE = Carbon::createFromFormat('Y-m-d', '2021-01-06');
$end = $dateE->copy()->endOfDay();

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

Loading…
Cancel
Save