基本上,控制器和路由之间的区别是什么。我们可以使用路由文件来控制数据,那么为什么我们需要控制器呢?<?user back to the form so they can do it all over again这不是我的代码,我在某个地方读过,但是,在这里,这个人在routes.php文件中使用了验证,在我的项目中,我在一个名为UserControl
这是我的控制器: 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的答案我决定对此路由使用完全限定的类名,但还有答案中描述的其他选项。