I would like to know how I can apply a middleware to a specific route in Laravel 5.6 , what I intend is that only logged-in users can access the route.
Route::get('https://josearandav.github.io/Tea-Docs/docs/', function () {
return view();
})->middleware('auth');
Access to this route is in a button of a menu. Thanks for your help masters!