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