class TrimStrings extends TransformsRequest (View source)
| protected array<int,string> | $except | The attributes that should not be trimmed. | |
| static protected array | $neverTrim | The globally ignored attributes that should not be trimmed. | |
| static protected array | $skipCallbacks | All of the registered skip callbacks. |
| mixed | handle(Request $request, Closure $next)
Handle an incoming request. | |
| 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. | |
| bool | shouldSkip(string $key, array $except)
Determine if the given key should be skipped. | |
| static void | except(array|string $attributes)
Indicate that the given attributes should never be trimmed. | |
| static void | skipWhen(Closure $callback)
Register a callback that instructs the middleware to be skipped. | |
| static void | flushState()
Flush the middleware's global state. |
Clean the request's data.
Clean the data in the parameter bag.
Clean the data in the given array.
Clean the given value.
Transform the given value.
Determine if the given key should be skipped.
Indicate that the given attributes should never be trimmed.
Register a callback that instructs the middleware to be skipped.
Flush the middleware's global state.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Foundation/Http/Middleware/TrimStrings.html