我注意到,每当我使用withInput()重定向回出错的输入表单时,都会出现一个非常常见的错误。htmlentities() expects parameter 1 to be string, array given (View:[path])
我已经意识到这只在我使用withInput()重定向时才会发生
这是我的控制器: As seen in the screenshot,the class exists and is in the correct place: My api.php route: When I hit my register route using Postman,it gave me the following error: Target class [Api\RegisterController] does not exist. ---- Update: Thanks的答案,我能够解决它。我决定对此路由使用完全限定的类名,但还有答案中描述的其他选项。