Good morning, I have a problem I can not see the pdf and it does not show me an error This is my license plate controller
$reporte_mat= new PdfController();
$reporte_mat->crear_reporte_matricula(1);
This is my driver PdfController ()
public function crearPDF($datos,$vistaurl,$tipo)
{
$data = $datos;
$date = date('Y-m-d');
$view = \View::make($vistaurl, compact('data','date'))->render();
$pdf = \App::make('dompdf.wrapper');
$pdf->loadHTML($view)->setPaper('a4', 'portrait');
if($tipo==1){return $pdf->stream('reporte');}
if($tipo==2){return $pdf->download('reporte.pdf'); }
}
public function crear_reporte_matricula($tipo){
$vistaurl="pdf.reporte_comprob_mat";
$user=User::all();
return $this->crearPDF($user, $vistaurl,$tipo);
}