ConvertEmptyStringsToNull
class ConvertEmptyStringsToNull extends TransformsRequest (View source)
Properties
| protected array | $attributes | The additional attributes passed to the middleware. | from TransformsRequest |
Methods
| mixed | handle($request, Closure $next, $attributes) Handle an incoming request. | from TransformsRequest |
| void | clean(Request $request) Clean the request's data. | from TransformsRequest |
| void | cleanParameterBag(ParameterBag $bag) Clean the data in the parameter bag. | from TransformsRequest |
| array | cleanArray(array $data) Clean the data in the given array. | from TransformsRequest |
| mixed | cleanValue(string $key, mixed $value) Clean the given value. | from TransformsRequest |
| mixed | transform(string $key, mixed $value) Transform the given value. |
Details
mixed handle($request, Closure $next, $attributes)
Handle an incoming request.
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)
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.html