ViewErrorBag
class ViewErrorBag implements Countable, Stringable, Transient mixin MessageBag
Properties
| protected MessageBag> | $bags | The array of the view error bags. |
Methods
Checks if a named MessageBag exists in the bags.
Get a MessageBag instance from the bags.
Get all the bags.
Determine if the default message bag has any messages.
Get the number of messages in the default bag.
Dynamically call methods on the default bag.
Dynamically access a view error bag.
Convert the default bag to its string representation.
Details
at line 27
bool
hasBag(string $key = 'default')
Checks if a named MessageBag exists in the bags.
at line 35
MessageBag
getBag(string $key)
Get a MessageBag instance from the bags.
at line 45
array
getBags()
Get all the bags.
at line 53
ViewErrorBag
put(string $key, MessageBag $bag)
Add a new MessageBag instance to the bags.
at line 63
bool
any()
Determine if the default message bag has any messages.
at line 71
int
count()
Get the number of messages in the default bag.
at line 79
mixed
__call(string $method, array $parameters)
Dynamically call methods on the default bag.
at line 87
MessageBag
__get(string $key)
Dynamically access a view error bag.
at line 95
void
__set(string $key, MessageBag $value)
Dynamically set a view error bag.
at line 103
string
__toString()
Convert the default bag to its string representation.