#150: Invoice PDF name
This commit is contained in:
parent
1e32502759
commit
c11a90c869
@ -11,7 +11,7 @@ class InvoiceController extends Controller
|
||||
public function pdf(int $id)
|
||||
{
|
||||
$invoice = Invoice::find($id);
|
||||
$url = strtolower('invoice-'.$invoice->internal_id.'.pdf');
|
||||
$url = strtolower($invoice->internal_id.$invoice->customer->company_name.'.pdf');
|
||||
|
||||
Pdf::view('pdf.invoice', ['invoice' => $invoice])
|
||||
->withBrowsershot(function (Browsershot $browsershot) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user