In laravel 5.6 I want to return 2 argument 1. message , 2. pdf .
Laravel Packege that i use for pdf is barryvdh/laravel-dompdf.
For message package is laracasts/flash.
$data = $request;
$pdf = PDF::loadView('admin.sample',compact('data'));
$pdf->download('sample');
$message = flash('Order Placed!!');
return response()->download($pdf);
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire