I have to load a pdf in a popup view but i don't know how. I have a function in controller that returns me the pdf:
public function viewPdf($file)
{
$path = storage_path($file);
return Response::make(file_get_contents($path), 200, [
'Content-Type' => 'application/pdf',
'Content-Disposition' => 'inline; filename="'.$file.'"'
]);
}
How can i do that in view?
Thank you
via user3242861