Good practice to create a route to a PDF download?
I want to create a PDF download link, I'm using Spatie's laravel-pdf
However when for example defining a route in a resource
'generate' => Pages\GenerateDocument::route('/{record}/download')
the page needs to extend extends Page
but can't override the render()
1 Reply
It might not be exactly what you're asking for but I've done something similar with just a custom action button: