Browse Source

update todo in presence, and update replace mandatory field parent in page divisi

pull/3/head
ibnu 2 years ago
parent
commit
360015d90b
  1. 4
      app/Http/Controllers/DivisiController.php
  2. 3
      app/Http/Controllers/PresenceController.php

4
app/Http/Controllers/DivisiController.php

@ -20,8 +20,8 @@ class DivisiController extends Controller
public function add(Request $request){
$this->validate($request, [
'name' => 'required',
'description' => 'string',
'parent' => 'integer'
'description' => 'string'
// 'parent' => 'integer'
]);
$data = $request->all();

3
app/Http/Controllers/PresenceController.php

@ -28,7 +28,7 @@ class PresenceController extends Controller
}
if($request->type=="out"){
// $clock_out_loc get data from api.nominatim url serach address payload (lat lot);
$clock_out_loc = "-";
$dataUpdate = array(
"clock_out"=>$request->clock_time,
@ -69,6 +69,7 @@ class PresenceController extends Controller
$onlyDate = date_format($date,"Y-m-d");
// $clock_in_loc get data from api.nominatim url serach address payload (lat lot);
$clock_in_loc = "-";
$dataAdd = array(

Loading…
Cancel
Save