CanBePrecognitive
trait CanBePrecognitive (View source)
Methods
Filter the given array of rules into an array of rules that are included in precognitive headers.
Determine if the given attribute should be validated.
Determine if the request is attempting to be precognitive.
Determine if the request is precognitive.
Details
array
filterPrecognitiveRules(array $rules)
Filter the given array of rules into an array of rules that are included in precognitive headers.
protected 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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.