middleware(ApiChannel::class) ->middleware(ApiCheckToken::class, false) //false表示不验证登录 ->middleware(ApiLog::class); Route::group('test_plug', function() { })->middleware(ApiChannel::class) ->middleware(ApiCheckToken::class, true) //表示验证登录 ->middleware(ApiLog::class);