Route::group(function () {
        Route::get('/list', [\App\Http\Controllers\Controller::class, 'list']);
    });

group下只有一个路由会有如上报错。