php artisan or php artisan route:list command produce eror. The error message is
Illuminate\Routing\UrlGenerator::__construct(): Argument #2 ($request) must be of type Illuminate\Http\Request, null given, called in /var/www/html/AD -Mgt/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider .php on line 65