class Illuminate / Foundation / Http / Middleware / TrimStrings
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

TrimStrings

Extends

Properties

protected static

$skipCallbacks array

All of the registered skip callbacks.

Default: []
protected

$except array

The attributes that should not be trimmed.

Default: []

Methods

public

handle ( $request , Closure $next ) : mixed

Handle an incoming request.

Parameters

protected

transform ( $key , $value ) : mixed

Transform the given value.

Parameters

  • $key string
  • $value mixed
public static

skipWhen ( Closure $callback ) : void

Register a callback that instructs the middleware to be skipped.

Parameters