MCQs > Website Designing & Development > Laravel Framework > Which is a correct way to assign middleware 'auth' to a route?

Laravel Framework MCQs

Which of the following is a correct way to assign middleware 'auth' to a route?

Answer

Correct Answer: Route::get('profile', [ 'middleware' => 'auth', 'uses' => 'UserController@show' ]);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Laravel Framework Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it