dompdf in laravel

Posted 3 months ago by meeadhassan

I have a problem with dompdf package when i use loadView its download a blank page

this is my function

public function downloadPDF($id)
{
    $pdf = App::make('dompdf.wrapper');
    $order = MiniMarketOrder::find($id);
    $pdf = \PDF::loadhtml('orders.show',$order);

   return $pdf->download('show.pdf');
}

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.