class Illuminate / Foundation / Http / Middleware / TrimStrings
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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