Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

can`t get path after saving the pdf file #193

Open
OthmanAlseagh opened this issue Feb 3, 2021 · 0 comments
Open

can`t get path after saving the pdf file #193

OthmanAlseagh opened this issue Feb 3, 2021 · 0 comments

Comments

@OthmanAlseagh
Copy link

OthmanAlseagh commented Feb 3, 2021

when I use save function

$pdf = Pdf::loadView('pdf.invoice', ['data' => $data]);
$name = 'receipt-#'.$data['order']->order_number.'1.pdf';
$path = $pdf->save($name,'F');

i want to get the file path so i can donload it with laravel nova action

   return  Action::download(url(path),$name);

note:
laravel nova does not use $pdf->download($name)

how i can solve this issue???????????????????

@OthmanAlseagh OthmanAlseagh changed the title Error : 'failed to open stream: Is a directory' when saving can`t get path after saving the pdf file Feb 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant