class ValidateSignature (View source)

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 class-string
absolute(array|string $ignore = [])

Specify that the URL signature is for an absolute URL.

handle(Request $request, Closure $next, array|null ...$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.

Details

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

Specify that the URL signature is for a relative URL.

Parameters

array|string $ignore

Return Value

string

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

Specify that the URL signature is for an absolute URL.

Parameters

array|string $ignore

Return Value

class-string

Response handle(Request $request, Closure $next, array|null ...$args)

Handle an incoming request.

Parameters

Request $request
Closure $next
array|null ...$args

Return Value

Response

Exceptions

InvalidSignatureException

protected array parseArguments(array $args)

Parse the additional arguments given to the middleware.

Parameters

array $args

Return Value

array

static void except(array|string $parameters)

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

Parameters

array|string $parameters

Return Value

void