Skip to content
Discussion options

You must be logged in to vote

Welp, I answered my own question. I don't see it in the documentation, but apparently you can pass an array of data as the second parameter to the headerView() and footerView() methods:

$pdf = PDF::view('document-name', $data)->footerView('components.header', ["client" => $client]);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by amorphia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant