ConvertEmptyStringsToNull
class ConvertEmptyStringsToNull extends TransformsRequest
Properties
protected array | $attributes | The additional attributes passed to the middleware. |
from TransformsRequest |
Methods
mixed
from
TransformsRequest
void
cleanParameterBag(ParameterBag $bag)
Clean the data in the parameter bag.
from
TransformsRequest
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.
in
TransformsRequest at line 39
protected void
clean(Request $request)
Clean the request's data.
in
TransformsRequest at line 56
protected void
cleanParameterBag(ParameterBag $bag)
Clean the data in the parameter bag.
in
TransformsRequest at line 67
protected array
cleanArray(array $data)
Clean the data in the given array.
in
TransformsRequest at line 81
protected mixed
cleanValue(string $key, mixed $value)
Clean the given value.
at line 14
protected mixed
transform(string $key, mixed $value)
Transform the given value.