我知道这个问题看起来很像这个Login and Register form on the same page Laravel 5.6,但它不是。我想在同一页上使用登录和注册表单,但问题是验证错误,无论哪个表单提交时都会在两个表单上显示错误消息?我可以通过将受保护的sendFailedLoginResponse方法放在LoginController中来确定无效凭据消息,如下所示 protected function s
当用户提交表单时,我需要在同一页上为他输出消息。当我提交一个表单时,页面刷新,处理程序触发(php函数),一些POST数据插入到数据库中,我设置了$this['success'] = 1,然后与Twig检查: hereis many tags with information and a message here is a form但是,如果我按下F5,表单将重新提交用AJAX