I\'m currently trying to incorporate the DOMPDF Wrapper for Laravel into my project, however I\'m having troble figuring out how to pass a variable into the PDF template.
Use compact('data') instead of $data.
compact('data')
$data
Example:
$pdf = \PDF::loadView('productType.invoice', compact('data'));