Skip to content

Commit

Permalink
Fix: typo in blade variable name (#2015)
Browse files Browse the repository at this point in the history
The pdf/order.blade.php file expects the variable that holds the order
data to be named 'record'.
'order' should be the old variable name (before 1.x)
  • Loading branch information
se09deluca authored Nov 7, 2024
1 parent 0b2d76e commit 4635e1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function getDefaultHeaderActions(): array

return response()->streamDownload(function () {
echo Pdf::loadView('lunarpanel::pdf.order', [
'order' => $this->record,
'record' => $this->record,
])->stream();
}, name: "Order-{$this->record->reference}.pdf");
}),
Expand Down

0 comments on commit 4635e1c

Please sign in to comment.