class ViewErrorBag implements Countable, Stringable mixin MessageBag

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.

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.

__get(string $key)

Dynamically access a view error bag.

__set(string $key, MessageBag $value)

Dynamically set a view error bag.

string
__toString()

Convert the default bag to its string representation.

Details

at line 24
bool hasBag(string $key = 'default')

Checks if a named MessageBag exists in the bags.

Parameters

string $key

Return Value

bool

at line 32
getBag(string $key)

Get a MessageBag instance from the bags.

Parameters

string $key

at line 40
array getBags()

Get all the bags.

Return Value

array

at line 48
ViewErrorBag put(string $key, MessageBag $bag)

Add a new MessageBag instance to the bags.

Parameters

string $key
MessageBag $bag

Return Value

ViewErrorBag

at line 58
bool any()

Determine if the default message bag has any messages.

Return Value

bool

at line 66
int count()

Get the number of messages in the default bag.

Return Value

int

at line 74
mixed __call(string $method, array $parameters)

Dynamically call methods on the default bag.

Parameters

string $method
array $parameters

Return Value

mixed

at line 85
MessageBag __get(string $key)

Dynamically access a view error bag.

Parameters

string $key

Return Value

MessageBag

at line 96
__set(string $key, MessageBag $value)

Dynamically set a view error bag.

Parameters

string $key
MessageBag $value

at line 104
string __toString()

Convert the default bag to its string representation.

Return Value

string