ConvertEmptyStringsToNull
class ConvertEmptyStringsToNull extends TransformsRequest
Properties
| static protected array<int, callable> | $skipCallbacks | All of the registered skip callbacks. |
Methods
void
cleanParameterBag(ParameterBag $bag)
Clean the data in the parameter bag.
from
TransformsRequest
array
cleanArray(array $data, string $keyPrefix = '')
Clean the data in the given array.
from
TransformsRequest
mixed
transform(string $key, mixed $value)
Transform the given value.
static void
static void
flushState()
Flush all static state.
Details
in
TransformsRequest at line 26
protected void
clean(Request $request)
Clean the request's data.
in
TransformsRequest at line 40
protected void
cleanParameterBag(ParameterBag $bag)
Clean the data in the parameter bag.
in
TransformsRequest at line 48
protected array
cleanArray(array $data, string $keyPrefix = '')
Clean the data in the given array.
in
TransformsRequest at line 60
protected mixed
cleanValue(string $key, mixed $value)
Clean the given value.
at line 36
protected mixed
transform(string $key, mixed $value)
Transform the given value.
at line 47
static void
skipWhen(Closure $callback)
Register a callback that instructs the middleware to be skipped.
Boot-only. Skip callbacks persist in a static property for the worker lifetime and run on every subsequent request.
at line 55
static void
flushState()
Flush all static state.