Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我想为下载的PDF设置路径。在哪里以及如何设置?_Pdf_Download_Path - Fatal编程技术网

我想为下载的PDF设置路径。在哪里以及如何设置?

我想为下载的PDF设置路径。在哪里以及如何设置?,pdf,download,path,Pdf,Download,Path,在我的控制器页面中,我编写了将刀片文件转换为PDF并下载的代码 public function pdfview(Request $request) { $idd=$_GET['id']; $fees = \DB::table("feesdetail")->where('stu_id',$idd)->get(); $pdf = PDF::loadView('pdfview',compact('fees')); return

在我的控制器页面中,我编写了将刀片文件转换为PDF并下载的代码

 public function pdfview(Request $request)
 {
    $idd=$_GET['id'];
         $fees = \DB::table("feesdetail")->where('stu_id',$idd)->get();
        $pdf = PDF::loadView('pdfview',compact('fees'));

        return $pdf->download('pdfview.pdf');
  }

服务器不决定在客户端系统上保存文件的路径。因此,要以任何其他方式执行该任务!???