📜  response()->make laravel pdf - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:37.790000             🧑  作者: Mango

代码示例1
$filename = 'test.pdf';
$path = storage_path($filename);

return Response::make(file_get_contents($path), 200, [
    'Content-Type' => 'application/pdf',
    'Content-Disposition' => 'inline; filename="'.$filename.'"'
]);