info('Starting combine pdf process...'); $period = request()->set(['period' => $this->argument('period')]); try { $controller = app(CombinePdfController::class); $response = $controller->combinePdfs($period); $responseData = json_decode($response->getContent(), true); $this->info($responseData['message'] ?? 'Process completed'); return Command::SUCCESS; } catch (Exception $e) { $this->error('Error processing combine pdf: ' . $e->getMessage()); return Command::FAILURE; } } }