mailer = $mailer; $this->propertyRoomService = $propertyRoomService; $this->propertyRoomRatePriceService = $propertyRoomRatePriceService; } public function handle() { $sourcePath = 'C:\www\api.extranetwork.com\app\Console\Commands\ChannelManager\akgun.xlsx'; $reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx(); $spreadsheet = $reader->load($sourcePath); $sheet = $spreadsheet->getSheet($spreadsheet->getFirstSheetIndex()); $rows = $sheet->toArray(); $rowKey = 0; foreach ($rows as $row) { $rowKey++; if($rowKey < 3) { continue; } dd($row); } //dd(file_exists($sourcePath)); $this->info(date('Y-m-d H:i:s') . ' : Start'); $this->info(date('Y-m-d H:i:s') . ' : Finished'); } }