api/laravel/Foundation/Validation/ValidatesRequests.yaml
2024-09-26 02:03:21 -07:00

105 lines
2.2 KiB
YAML

name: ValidatesRequests
class_comment: null
dependencies:
- name: Factory
type: class
source: Illuminate\Contracts\Validation\Factory
- name: Precognition
type: class
source: Illuminate\Foundation\Precognition
- name: Request
type: class
source: Illuminate\Http\Request
- name: ValidationException
type: class
source: Illuminate\Validation\ValidationException
properties: []
methods:
- name: validateWith
visibility: public
parameters:
- name: validator
- name: request
default: 'null'
comment: '# * Run the validation routine against the given validator.
# *
# * @param \Illuminate\Contracts\Validation\Validator|array $validator
# * @param \Illuminate\Http\Request|null $request
# * @return array
# *
# * @throws \Illuminate\Validation\ValidationException'
- name: validate
visibility: public
parameters:
- name: request
- name: rules
- name: messages
default: '[]'
- name: attributes
default: '[]'
comment: '# * Validate the given request with the given rules.
# *
# * @param \Illuminate\Http\Request $request
# * @param array $rules
# * @param array $messages
# * @param array $attributes
# * @return array
# *
# * @throws \Illuminate\Validation\ValidationException'
- name: validateWithBag
visibility: public
parameters:
- name: errorBag
- name: request
- name: rules
- name: messages
default: '[]'
- name: attributes
default: '[]'
comment: '# * Validate the given request with the given rules.
# *
# * @param string $errorBag
# * @param \Illuminate\Http\Request $request
# * @param array $rules
# * @param array $messages
# * @param array $attributes
# * @return array
# *
# * @throws \Illuminate\Validation\ValidationException'
- name: getValidationFactory
visibility: protected
parameters: []
comment: '# * Get a validation factory instance.
# *
# * @return \Illuminate\Contracts\Validation\Factory'
traits:
- Illuminate\Contracts\Validation\Factory
- Illuminate\Foundation\Precognition
- Illuminate\Http\Request
- Illuminate\Validation\ValidationException
interfaces: []