Showing 7 of 1,216 result(s)
The all method can be used to retrieve all the messages according to a given $format . The $format is null by default, which will cause the all method to use the format stored within the MessageBag instance (which can be retrieved using the...
The first method will return the first message in the MessageBag instance for a given $key . If the $key is null the first method will return the first message in the MessageBag instance. If there are no messages stored within the message bag, the...
The count method returns the total number of messages stored within the MessageBag instance. The count method exists to satisfy the requirements of PHP's Countable interface.The signature of the count method is: public function count();The...
The getMessageBag method returns a reference to the MessageBag instance. It exists to satisfy the requirements of the "Illuminate\Contracts\Support\MessageProvider" interface.The signature of the getMessageBag method is: public function...
The setFormat is the logical opposite of the getFormat method. It allows developers to customize the format used by all methods of the MessageBag instance. It defines a $format parameter, whose argument will be used as the value of the new format....
The "Illuminate\Support\MessageBag" class is an elaborate key/value storage system for storing different types of messages. It it also allows developers to specify a format which is used when returning the messages. The format makes it incredibly...
The put method is used to add a new MessageBag implementation instance to the ViewErrorBag instance, supplied as the argument to the $bag parameter with some name determined by the $key argument.