mercredi 28 novembre 2018

Laravel 5.6: DOMPDF Doesn't Save PDF Files

I am using the DOMPDF Wrapper for Laravel 5 to create a PDF from a view.

<?php

$customer = Customer::findOrFail(Auth::user()->id);

return PDF::loadView('backend.profile.includes.pdf.pdf', 
    compact('customer'))->save(public_path('pdf/resume/test.pdf'));

When I access the related page, the file isn't saved in the public folder. Nothing happens.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2FOkdad
via IFTTT

Aucun commentaire:

Enregistrer un commentaire