class ValidateSignature (View source)

Properties

protected array<int,string> $ignore

The names of the parameters that should be ignored.

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.

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