ConvertEmptyStringsToNull
class ConvertEmptyStringsToNull extends TransformsRequest (View source)
Properties
| static protected array | $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 the middleware's global state.
Details
protected void
clean(Request $request)
Clean the request's data.
protected void
cleanParameterBag(ParameterBag $bag)
Clean the data in the parameter bag.
protected array
cleanArray(array $data, string $keyPrefix = '')
Clean the data in the given array.
protected mixed
cleanValue(string $key, mixed $value)
Clean the given value.
protected mixed
transform(string $key, mixed $value)
Transform the given value.
static void
skipWhen(Closure $callback)
Register a callback that instructs the middleware to be skipped.
static void
flushState()
Flush the middleware's global state.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.