option('date'); $type = $this->option('type'); $this->info('Starting daily data migration process...'); $this->info('Date: ' . ($date ?? 'Not specified')); $this->info('Type: ' . ($type ?? 'Not specified')); try { $controller = app(MigrasiController::class); $response = $controller->index([ 'date' => $date, 'type' => $type ]); $responseData = json_decode($response->getContent(), true); $this->info($responseData['message'] ?? 'Process completed'); return Command::SUCCESS; } catch (Exception $e) { $this->error('Error processing daily migration: ' . $e->getMessage()); return Command::FAILURE; } } }