After we've upgraded our Laravel app, we'll find one issue when showing question details without user authenticated. We'll find no answers being displayed and if we open our browser console we'll find Verified email error.
This happened because when displaying question details we also hit /questions/{question}/answers endpoint. If you open routes/web.php we'll see that the route definition was inside verified middleware
Route::middleware('verified')->group(function() {
...
Route::resource('questions.answers', 'AnswersController')
->except(['create', 'show']);
...
});So to fix this issue we need to make a bit changes. First, we need to exclude the index action from questions.answers resource route definition.
Route::middleware('verified')->group(function() {
...
Route::resource('questions.answers', 'AnswersController')
->except(['create', 'show', 'index']);
...
});Second, we need to manually define new route for /questions/{question}/answers outside verified middleware.
Route::get('/questions/{question}/answers', 'AnswersController@index')->name('questions.answers.index');
Now, if you save the changes and reload your browser the error will gone.