laravel middleware auth specific route not allowed code example
Example 1: middleware command in laravel
php artisan make:middleware NameOfTheMiddleware
Example 2: Route::auth(); giving error in laravel 7
Do this step from the upgrade guide
https://laravel.com/docs/7.x/upgrade#authentication-scaffolding
############
composer require laravel/ui "^2.0"