CanBePrecognitive
trait CanBePrecognitive
Methods
array
filterPrecognitiveRules(array $rules)
Filter the given array of rules into an array of rules that are included in precognitive headers.
bool
shouldValidatePrecognitiveAttribute(string $attribute, array $validateOnly)
Determine if the given attribute should be validated.
bool
isAttemptingPrecognition()
Determine if the request is attempting to be precognitive.
bool
isPrecognitive()
Determine if the request is precognitive.
Details
at line 14
array
filterPrecognitiveRules(array $rules)
Filter the given array of rules into an array of rules that are included in precognitive headers.
at line 30
protected bool
shouldValidatePrecognitiveAttribute(string $attribute, array $validateOnly)
Determine if the given attribute should be validated.
at line 46
bool
isAttemptingPrecognition()
Determine if the request is attempting to be precognitive.
at line 54
bool
isPrecognitive()
Determine if the request is precognitive.