在Laravel 7中,如果请求验证失败,是否可以设置重定向路径?示例: public function handleForm(Request $request) if (!.);} 在这种情况下,如果someData没有验证,Laravel会将我重定向到请求最初所在的路径。这不是我想看到的行为。我希望能够定义一个不同的重定向路径。这有可能吗?
有时,当我尝试登录时,在成功验证后,我会重定向这个路由,但是为什么这个路由在routes.php中不存在。它也可以作为localhost:8000/home.访问。我的routes.php如下。Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI