In registration process, while sending verification email issue with adding {locale}. Data is being added to database. But thereafter giving following issue.
Missing required parameters for [Route: verification.verify] [URI: {locale}/email/verify/{id}/{hash}].
I think it will be some type of overriding the verification process.
web.php
Route::group([
'prefix' => '{locale}',
'where' => ['locale' => '[a-zA-Z]{2}'],
'middleware' => 'setlocale'], function() {
Auth::routes(['verify' => true]);
Route::get('/home', 'HomeController@index')->name('home');
});
Route::get('/', function () {
return redirect(app()->getLocale());
});
vendor/laravel/framework/src/Illuminate/Routing/Router.php
$this->get('email/verify/{id}/{hash}', 'Auth\VerificationController@verify')->name('verification.verify');
I know in router {locale} is not matching with the routing. But how to resolve this?
Route: verification.verify
link code. – Dilip Hirapara