Я пытаюсь использовать KoolReport в laravel vuejs, но он показывает мне пустую страницу, любая помощь будет высоко оценена.
Код в MyReport. php, как показано ниже
<?php
namespace App\Reports;
class MyReport extends \koolreport\KoolReport
{
//We leave this blank to demo only
Код в MyReport.view. php похож на ниже
<html>
<head>
<title>My Report</title>
</head>
<body>
<h1>It works</h1>
</body>
</html>
Код в ReportController. php равен как показано ниже
<?php
namespace App\Http\Controllers;
use App\Reports\MyReport;
class ReportController extends Controller
{
public function __contruct()
{
$this->middleware("guest");
}
public function index()
{
$report = new MyReport;
$report->run();
return view("report",["report"=>$report]);
}
}
Код в report.blade. php такой же, как ниже
{{ $report->render() }}
Код в ReportController@index есть как показано ниже
Route::get('/report', "ReportController@index");