Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function printPDF()
- {
- // This $data array will be passed to our PDF blade
- $data = [
- 'title' => 'First PDF for Medium',
- 'heading' => 'Hello from 99Points.info',
- 'content' => 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.'
- ];
- $pdf = PDF::loadView('pdf_view', $data);
- return $pdf->download('medium.pdf');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement