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
- Countable
- Stringable
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.