diff --git a/app/Console/Commands/ProcessSftpFiles.php b/app/Console/Commands/ProcessSftpFiles.php index 3f29b93..f15c387 100644 --- a/app/Console/Commands/ProcessSftpFiles.php +++ b/app/Console/Commands/ProcessSftpFiles.php @@ -37,7 +37,7 @@ class ProcessSftpFiles extends Command foreach ($folders as $folder) { - $this->info("Checking folder: $folder"); + Log::info("Checking folder: $folder"); try { @@ -45,7 +45,7 @@ class ProcessSftpFiles extends Command $files = Storage::disk('ftp')->files($folder); foreach ($files as $file) { - $this->info("File: " . $file); + Log::info("File: " . $file); $allFiles[] = $file; } @@ -206,7 +206,7 @@ class ProcessSftpFiles extends Command ->where('aufnr', ($row['aufnr'])) ->get(); - + $existingRecord = $existingRecords->where('gernr', $row['gernr'])->first(); $lastStatus = $existingRecords->max('pending_released_status');