I want to verify email, when user change it or create new account. I found this solution: https://laravel.com/docs/8.x/verification , but probably it not prepared for Laravel Sanctum solution. The problem is with request authorization (last parameter signature
): https://laravel.com/docs/8.x/verification#the-email-verification-handler
I have tried to write some code, but it does not work:
Route::get('/users/verify/{id}/{hash}', 'EmailVerificationController')
->middleware(['auth:sanctum', 'signed'])
->name('verification.verify');