From 27a31dcd2bf022bf1eda438ccde6ccaa5446e783 Mon Sep 17 00:00:00 2001 From: farhantock Date: Sat, 18 May 2024 15:26:48 +0700 Subject: [PATCH] remove unused file --- .../Commands/syncHumanResourceIntegration.php | 77 ------------------- 1 file changed, 77 deletions(-) delete mode 100644 app/Console/Commands/syncHumanResourceIntegration.php diff --git a/app/Console/Commands/syncHumanResourceIntegration.php b/app/Console/Commands/syncHumanResourceIntegration.php deleted file mode 100644 index 7b4ef5f..0000000 --- a/app/Console/Commands/syncHumanResourceIntegration.php +++ /dev/null @@ -1,77 +0,0 @@ -message != 'success') - return; - - if(!is_int($response->total) || $response->total == 0) - return; - - $totalPage = $response->last_page; - echo "\nTotal Page = " . $totalPage; - $currentResponse = $response; - for($i = 1; $i <= $totalPage; $i++){ - echo "\nCurrent Page = " . $i; - $employeesPageData = $currentResponse->data; - foreach($employeesPageData as $employee){ - HumanResource::firstOrCreate( - ['ktp_number' => $employee->emp_id], - [ - 'name' => $employee->name, - 'employee_type' => 'employee', - 'status_resource' => 'active', - 'role_id' => 24, - 'created_by' => 'integration' - ], - ); - } - echo "\n------------------------------------------\n"; - $currentResponse = MasterFunctionsHelper::curlReq(str_replace('1', $i, $url)); - } - } -}