Php 代码运行得非常完美,但调用时pdf并没有在laravel中下载

Php 代码运行得非常完美,但调用时pdf并没有在laravel中下载,php,laravel,dompdf,laravel-nova,Php,Laravel,Dompdf,Laravel Nova,我正在使用dompdf并尝试下载pdf。我正在尝试调用从我的nova action文件下载pdf的方法,它也没有显示错误,但pdf没有下载 任何快速的建议都会有帮助 我的动作文件 下载OrganizationReportPDF.php: <?php namespace App\Nova\Actions; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate

我正在使用dompdf并尝试下载pdf。我正在尝试调用从我的nova action文件下载pdf的方法,它也没有显示错误,但pdf没有下载

任何快速的建议都会有帮助

我的动作文件

下载OrganizationReportPDF.php:

    <?php

namespace App\Nova\Actions;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Collection;
use Laravel\Nova\Actions\Action;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\ActionFields;

class DownloadOrganizationReportPDF extends Action
{
    use InteractsWithQueue, Queueable;

    /**
     * Perform the action on the given models.
     *
     * @param  \Laravel\Nova\Fields\ActionFields  $fields
     * @param  \Illuminate\Support\Collection  $models
     * @return mixed
     */
    public function handle(ActionFields $fields, Collection $models)
    {
         $invoiceController = new \App\Http\Controllers\InvoiceController();
        return $invoiceController->makePDF();


    }

    /**
     * Get the fields available on the action.
     *
     * @return array
     */
    public function fields()
    {
        return [];
    }
}

你有空白页吗?没有,我收到nova的成功消息,行动成功运行,但pdf没有下载
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use PDF;

class InvoiceController extends Controller
{
    public function makePDF()
    {

        $pdf = PDF::loadView('report');
        return $pdf->download('invoice.pdf');
    }
}
    <!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>check</title>
</head>
<body>
<h1>test</h1>
</body>
</html>