trait Illuminate / Http / Concerns / CanBePrecognitive

CanBePrecognitive

Methods

public

filterPrecognitiveRules ( $rules ) : array

Filter the given array of rules into an array of rules that are included in precognitive headers.

Parameters

  • $rules array
public

isAttemptingPrecognition ( ) : bool

Determine if the request is attempting to be precognitive.

public

isPrecognitive ( ) : bool

Determine if the request is precognitive.