Laravel pdf问题:无法打开流:使用barryvdh/laravel-dompdf软件包没有此类文件或目录 [英] Laravel pdf issue: failed to open stream: No such file or directory by using barryvdh/laravel-dompdf package
问题描述
我正在更新作曲家,并使用barryvdh/laravel-dompdf软件包.
I am update composer and use barryvdh/laravel-dompdf package.
问题是,当我单击按钮时,它向我显示错误,如下图所示:-
the problem is when i click the button it show me error like image below:-
还是要更改文件夹路径吗?还是我缺少修改下载pdf文件路径的代码?
Is that anyway to change the folder path? or am I missing code to modify path to download the pdf file?
推荐答案
您需要运行以下命令:
php artisan vendor:publish
然后,尝试在storage
目录中创建一个fonts
目录.
Then, try to create a fonts
directory in the storage
directory.
即storage/app/fonts
.另外,请记住使其可写.
i.e. storage/app/fonts
. Also, remember to make it writable.
对于超过30秒的最大执行时间,这不是与laravel相关的问题,而是有关php配置的问题.请查看并解决此问题: http://php .net/manual/en/info.configuration.php#ini.max-execution-time
For maximum execution time of 30 seconds exceeded, this is not laravel related issue but it's about php configuration issue. Please see this and fix it: http://php.net/manual/en/info.configuration.php#ini.max-execution-time
您还可以看到以下答案: https://stackoverflow.com/a/30290770/6000629
You can also see this answer: https://stackoverflow.com/a/30290770/6000629
希望这对您有帮助!
这篇关于Laravel pdf问题:无法打开流:使用barryvdh/laravel-dompdf软件包没有此类文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!