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 30
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 40
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 54
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 68
protected array parseArguments(array $args)

Parse the additional arguments given to the middleware.

Parameters

array $args

Return Value

array

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

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

Boot-only. 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 100
static void flushState()

Flush all static state.

Return Value

void