class
Illuminate
/
Support
/
ViewErrorBag
You are viewing an older version of the documentation. For the latest, please visit master documentation.
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
getBags ( ) : array
Get all the bags.
public
put ( $key , MessageBag $bag ) : $this
Add a new MessageBag instance to the bags.
Parameters
- $key string
- $bag MessageBag
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
__set ( $key , $value ) : void
Dynamically set a view error bag.
Parameters
- $key string
- $value MessageBag
public
__toString ( ) : string
Convert the default bag to its string representation.