W3cubDocs

/Laravel 5.8

ConvertEmptyStringsToNull

class ConvertEmptyStringsToNull extends TransformsRequest (View source)

Methods

mixed handle(Request $request, Closure $next)

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, string $keyPrefix = '')

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 $request, Closure $next)

Handle an incoming request.

Parameters

Request $request
Closure $next

Return Value

mixed

protected void clean(Request $request)

Clean the request's data.

Parameters

Request $request

Return Value

void

protected void cleanParameterBag(ParameterBag $bag)

Clean the data in the parameter bag.

Parameters

ParameterBag $bag

Return Value

void

protected array cleanArray(array $data, string $keyPrefix = '')

Clean the data in the given array.

Parameters

array $data
string $keyPrefix

Return Value

array

protected mixed cleanValue(string $key, mixed $value)

Clean the given value.

Parameters

string $key
mixed $value

Return Value

mixed

protected mixed transform(string $key, mixed $value)

Transform the given value.

Parameters

string $key
mixed $value

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.html