添加签名
Route::get('invitations/{invitation}/{answer}', 'InvitationController')
->name('invitations');// Generate a normal link
URL::route('invitations', ['invitation' => 12345, 'answer' => 'yes']); // Generate a signed link
URL::signedRoute('invitations', ['invitation' => 12345, 'answer' => 'yes']);
// Generate an expiring (temporary) signed link
URL::temporarySignedRoute(
'invitations',
now()->addHours(4),
['invitation' => 12345, 'answer' => 'yes']
);Last updated