you can't put a for each after a concatenate (.)
[code] $html = '<html><body>'; foreach ($data as $details) { $html.= $details->firstname . "<br>"; } $html .= '</body></html>'; $pdf->loadHTML($html); return $pdf->stream(); [/code]
SOLVED!!!!!
kpzani,
Hips Thanks,..!! it works !!
Thank you,
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community