class ValidateSignature

Properties

protected array<int, string> $ignore

The names of the parameters that should be ignored.

static protected array $neverValidate

The globally ignored parameters.

Methods

static string
relative(array|string $ignore = [])

Specify that the URL signature is for a relative URL.

static string
absolute(array|string $ignore = [])

Specify that the URL signature is for an absolute URL.

Response
handle(Request $request, Closure $next, string ...$args)

Handle an incoming request.

array
parseArguments(array $args)

Parse the additional arguments given to the middleware.

static void
except(array|string $parameters)

Indicate that the given parameters should be ignored during signature validation.

static void
flushState()

Flush all static state.

Details

at line 31
static string relative(array|string $ignore = [])

Specify that the URL signature is for a relative URL.

Parameters

array|string $ignore

Return Value

string

at line 41
static string absolute(array|string $ignore = [])

Specify that the URL signature is for an absolute URL.

Parameters

array|string $ignore

Return Value

string

at line 55
Response handle(Request $request, Closure $next, string ...$args)

Handle an incoming request.

Parameters

Request $request
Closure $next
string ...$args

Return Value

Response

Exceptions

InvalidSignatureException

at line 69
protected array parseArguments(array $args)

Parse the additional arguments given to the middleware.

Parameters

array $args

Return Value

array

at line 91
static void except(array|string $parameters)

Indicate that the given parameters should be ignored during signature validation.

The list persists in a static property for the worker lifetime and applies to every subsequent request.

Parameters

array|string $parameters

Return Value

void

at line 102
static void flushState()

Flush all static state.

Return Value

void