Merge remote-tracking branch 'origin/3.2.2' into 3.2.3

This commit is contained in:
Mathieu Lagace
2019-09-12 08:02:14 -04:00
4 changed files with 205 additions and 224 deletions

View File

@@ -196,7 +196,8 @@ class ScheduleController extends Controller
public function printtopdf($id)
{
$event = \App\Event::find($id);
$pdf = PDF::loadView('admin.schedule.print.event',['event' => $event]);
//return view('admin.schedule.print.event',['event' => $event]);
$pdf = PDF::loadView('admin.schedule.print.event',['event' => $event])->setPaper('8.5x11', 'landscape');
return $pdf->download($event->date_begin.'.pdf');
}