芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/laravel/sanctum/src/NestedRules.php
callback = $callback; } /** * Compile the callback into an array of rules. * * @param string $attribute * @param mixed $value * @param mixed $data * @param mixed $context * @return \stdClass */ public function compile($attribute, $value, $data = null, $context = null) { $rules = call_user_func($this->callback, $value, $attribute, $data, $context); $parser = new ValidationRuleParser( Arr::undot(Arr::wrap($data)) ); if (is_array($rules) && ! array_is_list($rules)) { $nested = []; foreach ($rules as $key => $rule) { $nested[$attribute.'.'.$key] = $rule; } $rules = $nested; } else { $rules = [$attribute => $rules]; } return $parser->explode(ValidationRuleParser::filterConditionalRules($rules, $data)); } }