Browse Source

Update 'app/Http/Controllers/Api/ClaimedController.php'

ifah
Zafwan 5 years ago
parent
commit
a2898f2284
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Api/ClaimedController.php

+ 1
- 1
app/Http/Controllers/Api/ClaimedController.php View File

$id = Auth::guard('cs')->id(); $id = Auth::guard('cs')->id();
$user = Staff::with('StaffDetail')->find($id); $user = Staff::with('StaffDetail')->find($id);


$dateS = Carbon::createFromFormat('Y-m-d', '2020-01-01');
$dateS = Carbon::createFromFormat('Y-m-d', '2019-01-01');
$start = $dateS->copy()->startOfDay(); $start = $dateS->copy()->startOfDay();
$dateE = Carbon::createFromFormat('Y-m-d', '2020-12-31'); $dateE = Carbon::createFromFormat('Y-m-d', '2020-12-31');
$end = $dateE->copy()->endOfDay(); $end = $dateE->copy()->endOfDay();

Loading…
Cancel
Save