Call to undefined method Barryvdh\DomPDF\PDF::setOrientation()
I am getting the above error on saving pdf.
PDF::loadHTML($flight_plan_pdf_content)
->setPaper('a4')
->setOrientation('portrait')
->save($filePath . $fileName);
About mentioned is my code.
the same code is working with laravel 5.2 and "barryvdh/laravel-dompdf": "0.6.*",