I've implemented signedLocalizedRoute and temporarySignedLocalizedRoute macros for Laravel's UrlGenerator, analogous to signedRoute and temporarySignedRoute.
use Illuminate\Support\Facades\URL;
return URL::signedLocalizedRoute('unsubscribe', ['user' => 1]);
use Illuminate\Support\Facades\URL;
return URL::temporarySignedLocalizedRoute(
'unsubscribe', now()->addMinutes(30), ['user' => 1]
);
I've implemented
signedLocalizedRoute
andtemporarySignedLocalizedRoute
macros for Laravel'sUrlGenerator
, analogous tosignedRoute
andtemporarySignedRoute
.