How can I render a PDF using a Livewire component that implements HasInfolists?
I've built an abstract component called
This component is being used as an abstract class for
I have successfully created a rendered HTML file that routed to
But when I tried to plug it in to
In
This is how the error looks: https://flareapp.io/share/67OwQOJ7
Thank you for reading to this point. Please let me know if this problem comes from me, Livewire, or barryvdh/laravel-dompdf.
App\Livewire\Pdf\Pdf . This component implements HasInfolists and HasForms.This component is being used as an abstract class for
App\Livewire\Pdf\MembershipAgreement. The class has its own blade file and headerInfolist method.I have successfully created a rendered HTML file that routed to
{base_url}/pdf/agreement/membership/{record}, using a typical render method.But when I tried to plug it in to
\Barryvdh\DomPDF\Facade\Pdf, it throws an exception.In
routes/web.php:This is how the error looks: https://flareapp.io/share/67OwQOJ7
Thank you for reading to this point. Please let me know if this problem comes from me, Livewire, or barryvdh/laravel-dompdf.
Flare
Using $this when not in object context - The error occurred at https://dashboard.marsgym.test/pdf/agreement/membership/01hcye30x3nazdb1danprd728p/open