class ViewErrorBag implements Countable (View source)
protected array | $bags | The array of the view error bags. |
bool | hasBag(string $key = 'default') Checks if a named MessageBag exists in the bags. | |
MessageBag | getBag(string $key) Get a MessageBag instance from the bags. | |
array | getBags() Get all the bags. | |
$this | put(string $key, MessageBag $bag) Add a new MessageBag instance to the bags. | |
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. | |
MessageBag | __get(string $key) Dynamically access a view error bag. | |
void | __set(string $key, MessageBag $value) Dynamically set a view error bag. |
Checks if a named MessageBag exists in the bags.
Get a MessageBag instance from the bags.
Get all the bags.
Add a new MessageBag instance to 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.
Dynamically set a view error bag.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Support/ViewErrorBag.html