Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

niseku's avatar

Signed urls with dynamic query params

We have a signed url which for downloading a report as pdf.

Know it would be great, if we can provide a filter as query parameters like ?state=open or ?limit=200 to this signed url (without generating this url for each variation of the filter).

Can we configure this signed route to just verify the url without query params?

Or is there a better way to restrict file download for some user groups?

Here is the code of the url generation:

public function getReportUrl()
    {
        return ['url' => URL::temporarySignedRoute('ParticipationReport', now()->addMinutes(30))];
    }
0 likes
1 reply

Please or to participate in this conversation.