class ViewErrorBag implements Countable (View source)

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
put( string $key, MessageBag $bag)

Add a new MessageBag instance to the bags.

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
__set( string $key, MessageBag $value)

Dynamically set a view error bag.

Details

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

Checks if a named MessageBag exists in the bags.

Parameters

string $key

Return Value

bool

at line line 34
MessageBag getBag( string $key)

Get a MessageBag instance from the bags.

Parameters

string $key

Return Value

MessageBag

at line line 44
array getBags()

Get all the bags.

Return Value

array

at line line 56
$this put( string $key, MessageBag $bag)

Add a new MessageBag instance to the bags.

Parameters

string $key
MessageBag $bag

Return Value

$this

at line line 68
int count()

Get the number of messages in the default bag.

Return Value

int

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

Dynamically call methods on the default bag.

Parameters

string $method
array $parameters

Return Value

mixed

at line line 91
MessageBag __get( string $key)

Dynamically access a view error bag.

Parameters

string $key

Return Value

MessageBag

at line line 103
void __set( string $key, MessageBag $value)

Dynamically set a view error bag.

Parameters

string $key
MessageBag $value

Return Value

void