TypeError: Illuminate\Routing\Router::group(): Argument #1 ($attributes) must be of type array, Closure given, called in D:\project\ibra-backend\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 353 in file D:\project\ibra-backend\vendor\laravel\framework\src\Illuminate\Routing\Router.php on line 450
Route::group(function () {
Route::get('/list', [\App\Http\Controllers\Controller::class, 'list']);
});
group下只有一个路由会有如上报错。