Skip to content

Commit

Permalink
fix: typo in blade variable name
Browse files Browse the repository at this point in the history
The blade 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 committed Nov 6, 2024
1 parent 0b2d76e commit 6baefaa
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 6baefaa

Please sign in to comment.