0

这是我的代码:

$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.

有什么想法可能是错的吗?我无法确定是无法创建文件还是文件夹路径?

4

0 回答 0