-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
服务端验证 #4
Comments
不用加两个validate啊,步骤2实际上是Request做了验证,你下面又用了validate做了验证,没必要。其中一种就行了。 |
那就将步骤2保留 public function postValidate(ValidationRequest $request) {
} 我只需要在登陆的时候用到这个验证,所以将
谢谢 |
嗯嗯这样就可以了,只需要参数设置成ValidationRequest就能自动调用里面的规则进行验证的。 |
Closed
谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
根据教程的服务端验证部分,
在
app/Http/Requests
建立ValidationRequest.php
在
app/Http/Controllers/Auth/AuthController.php
添加:postValidate
请问,步骤2对吗?
或者有
服务器验证
这部分的Demo?我只需要实现登陆页面进行验证码校验就可以了。
The text was updated successfully, but these errors were encountered: