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
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()