D
D
Dmitry2021-02-28 19:54:31
Laravel
Dmitry, 2021-02-28 19:54:31

Is it possible to deactivate a signed url before the expiration date in Laravel?

Hello everyone, I use signed urls in Laravel, example

return URL::temporarySignedRoute(
    'unsubscribe', now()->addMinutes(30), ['user' => 1]
);

Is there any way to deactivate this url before the 30 minute expiration date?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin B., 2021-02-28
@Kostik_1993

Such a task must be implemented with a database or cache so that it can be deactivated
. In the current version, the signature and date will be stored in the link itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question