芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/fluentform/app/Services/Settings/Validator/Validate.php
make($data, $rules, $messages); // Add conditional validations if there's any. $validator = static::conditionalValidations($validator); // Validate and process response. if ($validator->validate()->fails()) { throw new ValidationException('Unprocessable Entity!', 422, null, $validator->errors()); } return true; } /** * Produce the necessary validation rules and corresponding messages * * @return array */ public static function validations() { return [[], []]; } /** * Add conditional validations to the validator. * * @param \FluentForm\Framework\Validator\Validator $validator * * @return \FluentForm\Framework\Validator\Validator */ public static function conditionalValidations(Validator $validator) { return $validator; } }