interface Illuminate / Contracts / Support / CanBeEscapedWhenCastToString
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

CanBeEscapedWhenCastToString

Methods

public

escapeWhenCastingToString ( $escape ) : $this

Indicate that the object's string representation should be escaped when __toString is invoked.

Parameters

  • $escape bool