test per configurazione ruoli

This commit is contained in:
2023-05-30 16:14:57 +02:00
parent b4bf945c6f
commit f300136cf2
12 changed files with 161 additions and 8 deletions

View File

@@ -13,9 +13,14 @@ class CondominioController extends Controller
public function testPdf(){
$data=DB::table('categories')->get();
$pdf = PDF::setOptions(['dpi' => 150, 'defaultFont' => 'Helvetica'])->loadView('conti.categorie.list', ['categorie' => $data->toArray()]);
//return $pdf->download('invoice.pdf');
//return $pdf->download('invoice.pdf');
/*$pdf = App::make('dompdf.wrapper');
$pdf->loadHTML('<h1>Test</h1>');*/
return $pdf->stream();
}
public function err403()
{
abort(403);
}
}