Created a Laravel component for a pdf action, inside a custom page i used this:

Action::make('certificate')->button()->label('Certificate PDF') ->action(function () { $pdfUrl = route('competition-certificate-print', [ 'franchisee' => $this->franchisee->id, 'competition' => $this->record->id, ]); $this->dispatchBrowserEvent('open-pdf-modal', ['url' => $pdfUrl, 'title' => 'Certificate PDF', 'fileName' => 'Competition']); }), for the custom page blade file i used this : <x-pdf-action /> it worked, now i want to use that inside a resource action, how can i achieve this in there.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server