dope2008 7年前 Route::group(['middleware' => ['auth:api']], function () { Route::get('/test', function (Request $request) { return response()->json(['name' => 'test']); }); }); 我这样子写不对的,访问不了/test