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

ViewErrorBag

Implements

Properties

protected

$bags array

The array of the view error bags.

Default: []

Methods

public

hasBag ( $key ) : bool

Checks if a named MessageBag exists in the bags.

Parameters

  • $key string
public

getBag ( $key ) : MessageBag

Get a MessageBag instance from the bags.

Parameters

  • $key string
public

getBags ( ) : array

Get all the bags.

public

put ( $key , MessageBag $bag ) : $this

Add a new MessageBag instance to the bags.

Parameters

public

any ( ) : bool

Determine if the default message bag has any messages.

public

count ( ) : int

Get the number of messages in the default bag.

public

__call ( $method , $parameters ) : mixed

Dynamically call methods on the default bag.

Parameters

  • $method string
  • $parameters array
public

__get ( $key ) : MessageBag

Dynamically access a view error bag.

Parameters

  • $key string
public

__set ( $key , $value ) : void

Dynamically set a view error bag.

Parameters

public

__toString ( ) : string

Convert the default bag to its string representation.