Laravel pdf问题:无法打开流:使用barryvdh/laravel-dompdf软件包没有此类文件或目录 [英] Laravel pdf issue: failed to open stream: No such file or directory by using barryvdh/laravel-dompdf package

查看:194
本文介绍了Laravel pdf问题:无法打开流:使用barryvdh/laravel-dompdf软件包没有此类文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在更新作曲家,并使用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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆