i'm using cups-ipp to print from web project
and i got this error
file_get_contents(./helloworld.pdf): failed to open stream: No such file or directory
I tried to get file from storage but got the same error
$builder = new Builder();
$responseParser = new ResponseParser();
$printerManager = new PrinterManager($builder, $client, $responseParser);
$printer = $printerManager->findByUri('ipp://localhost:631/printers/HP_HP_ColorLaserJet_MFP_M278-M281');
$jobManager = new JobManager($builder, $client, $responseParser);
$filePath = '../../../storage/app/public/estimated_dates.pdf';
$job = new Job();
$job->setName('job create file');
$job->setUsername('demo');
$job->setCopies(1);
$job->setPageRanges('1');
$job->addFile('./helloworld.pdf');
$job->addAttribute('media', 'A4');
$job->addAttribute('fit-to-page', true);
$result = $jobManager->send($printer, $job);
I linked storage and I'm sure that the path is correct (I also used auto complete path plugin
)