class UpdateAnnotationCandidate extends FormRequest

Properties

AnnotationCandidate $candidate

The annotation candidate to update

Methods

bool
authorize()

Determine if the user is authorized to make this request.

array
rules()

Get the validation rules that apply to the request.

void
withValidator(Validator $validator)

Configure the validator instance.

maybeValidatePoints(Validator $validator)

Check if the points array is correct if it is present.

maybeRestrictUpdating(Validator $validator)

Do not allow updating of candidate candidate if it already has been selected.

Details

at line 25
bool authorize()

Determine if the user is authorized to make this request.

Return Value

bool

at line 47
array rules()

Get the validation rules that apply to the request.

Return Value

array

at line 61
void withValidator(Validator $validator)

Configure the validator instance.

Parameters

Validator $validator

Return Value

void

at line 74
protected maybeValidatePoints(Validator $validator)

Check if the points array is correct if it is present.

Parameters

Validator $validator

at line 90
protected maybeRestrictUpdating(Validator $validator)

Do not allow updating of candidate candidate if it already has been selected.

Parameters

Validator $validator