Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

response()->make laravel pdf

$filename = 'test.pdf';
$path = storage_path($filename);

return Response::make(file_get_contents($path), 200, [
    'Content-Type' => 'application/pdf',
    'Content-Disposition' => 'inline; filename="'.$filename.'"'
]);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #pdf
ADD COMMENT
Topic
Name
2+8 =