ViewErrorBag
class ViewErrorBag implements Countable, Stringable mixin MessageBag (View source)
Properties
protected array | $bags | The array of the view error bags. |
Methods
bool
hasBag(string $key = 'default')
Checks if a named MessageBag exists in the bags.
getBag(string $key)
Get a MessageBag instance from the bags.
array
getBags()
Get all the bags.
$this
bool
any()
Determine if the default message bag has any messages.
int
count()
Get the number of messages in the default bag.
mixed
__call(string $method, array $parameters)
Dynamically call methods on the default bag.
__get(string $key)
Dynamically access a view error bag.
void
string
__toString()
Convert the default bag to its string representation.