我是Laravel的初学者。我在Laravel 5.8中进行项目。 我想从以下位置更改激活电子邮件中发送的网址(注册新用户帐户后):
http://domain.test/email/verify/4? Expires = 1564173078 & signature = 60f6d062f9e52fcc79ffddaa5d82e46cf7fe9b748018ea9ff05bc6b4bf310f9b
到以下:
http://domain.test/activation/4? expires = 1564173078 & signature = 60f6d062f9e52fcc79ffddaa5d82e46cf7fe9b748018ea9ff05bc6b4bf310f9b
我该怎么做?
答案 0 :(得分:0)
首先,您需要注销验证路径
Auth::routes(['verify' => false]);
然后注册此路由。根据需要更改路径
Route::get('email/verify', 'Auth\VerificationController@show')->name('verification.notice');
Route::get('email/verify/{id}', 'Auth\VerificationController@verify')->name('verification.verify');
Route::get('email/resend', 'Auth\VerificationController@resend')->name('verification.resend');
您可以通过发出此工匠命令来比较之前和之后的路线
php artisan route:list