从Route Service Provide创建路由文件,并分配中间件"admin.auth“,此中间件在web.php中工作,提供管理员用户的基本信息,但从custom.php返回auth falseadmin.auth如何在路由服务提供商中工作 protected function mapWebRoutes2() Route::group([
这是我的控制器: As seen in the screenshot,the class exists and is in the correct place: My api.php routegave me the following error: Target class [Api\RegisterController] does not exist. ---- Update: Thanks的答案我决定对此路由使用完全限定的类名,但还有答案中描述的其他选项。