diff --git a/app/Http/Controllers/DivisiController.php b/app/Http/Controllers/DivisiController.php index ea7c3d4..aad3c90 100644 --- a/app/Http/Controllers/DivisiController.php +++ b/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(); diff --git a/app/Http/Controllers/PresenceController.php b/app/Http/Controllers/PresenceController.php index a2664b4..5086ce1 100644 --- a/app/Http/Controllers/PresenceController.php +++ b/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(