Laravel / Snappy:无法生成PDF或创建文件夹

时间:2015-07-21 16:13:07

标签: laravel snappy

这是我的代码:

$offer = Offer::find($id);
$url = URL::to('/offers/view/' . $id . '/pdf');

PDF::loadFile($url)
    ->callSettings()
    ->save('/tisa/src/public/pdf/offer/Tisa-ponudba_'. $offer->code .'.pdf');

我收到以下错误:

RuntimeException in AbstractGenerator.php line 517:
The output file's directory '/tisa/src/public/pdf/offer' could not be created.

任何想法都可能出错?我无法确定无法创建文件还是文件夹路径?

0 个答案:

没有答案