class ConvertEmptyStringsToNull extends TransformsRequest

Properties

protected array $attributes

The additional attributes passed to the middleware.

from  TransformsRequest

Methods

mixed
handle(Request $request, Closure $next, ...$attributes)

Handle an incoming request.

void
clean(Request $request)

Clean the request's data.

void
cleanParameterBag(ParameterBag $bag)

Clean the data in the parameter bag.

array
cleanArray(array $data)

Clean the data in the given array.

mixed
cleanValue(string $key, mixed $value)

Clean the given value.

mixed
transform(string $key, mixed $value)

Transform the given value.

Details

in TransformsRequest at line 24
mixed handle(Request $request, Closure $next, ...$attributes)

Handle an incoming request.

Parameters

Request $request
Closure $next
...$attributes

Return Value

mixed

in TransformsRequest at line 39
protected void clean(Request $request)

Clean the request's data.

Parameters

Request $request

Return Value

void

in TransformsRequest at line 56
protected void cleanParameterBag(ParameterBag $bag)

Clean the data in the parameter bag.

Parameters

ParameterBag $bag

Return Value

void

in TransformsRequest at line 67
protected array cleanArray(array $data)

Clean the data in the given array.

Parameters

array $data

Return Value

array

in TransformsRequest at line 81
protected mixed cleanValue(string $key, mixed $value)

Clean the given value.

Parameters

string $key
mixed $value

Return Value

mixed

at line 14
protected mixed transform(string $key, mixed $value)

Transform the given value.

Parameters

string $key
mixed $value

Return Value

mixed