temporarySignedRoute, Expiry

Posted 6 months ago by zxtanzxzx

I wanted to create a temporary link where users may click on it to access a web page where they can leave a comment.

My current solution is using temporarySignedRoute in Laravel to generate a link that will expired,

        $url = URL::temporarySignedRoute('comment.project.get', now()->addMinutes(100), ['id' => 1]);

But in this way, the link will only expired after 100 minutes. Expiration after 100 minutes is good, but i want it to also expired after user submit his comment.

So, my question, is there anyway to make the temporarySignedRooute link expired manually or once the user submit his comment?

Or any other suggestion from the community to resolve my problem here?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.