I am using laravel-dompdf to create a pdf file and save it to drive. Unfortunately, i am getting the above mentioned error. I tried different solutions including increasing the memory limit and max upload size but that didn't help. None of the existing answers on stackoverflow helped. Any help would be highly appreciated.
My Code:
$pdf = \Barryvdh\DomPDF\Facade\Pdf::loadView(
'fee_vouchers.saved_voucher',
$data
);
$output = $pdf->setPaper('a4', 'landscape')
->setWarnings(false)
->output();
Storage::put($full_path, $output);