Tp- automatically validates the return value?

if both pieces of data are wrong in automatic verification, how do I return two error messages?

Mar.22,2021

can be customized and are thrown sequentially in automatic validation.


by default, once the verification rules of a certain data are not met, the verification of subsequent data and rules will be stopped. If you want batch verification, you can set batch verification
batch verification. There are many ways to do batch verification.

$data = input('post.');
$validate = new app\common\validate\User();
$result = $validate->batch()->check($data);
Menu