Search

Showing 7 of 587 result(s)

/blog/2018/04/21/laravel-5-message-bags-determining-if-there-are-any-messages-with-any

The any method returns a boolean value indicating if the MessageBag instance actually has any messages. The method returns true if the instance has messages, otherwise it returns false .The signature of the any method is: public function any();The...

/blog/2018/04/21/laravel-5-message-bags-getting-the-current-message-format-with-getformat

The getFormat is the logical opposite of the setFormat method. It simply returns the current format that is being used by the MessageBag instance.The signature of the getFormat method is: public function getFormat();The following examples...

/blog/2018/04/21/laravel-5-message-bags

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...

/blog/2018/04/21/laravel-5-view-error-bags

The "Illuminate\Support\ViewErrorBag" class is generally used to communicate error messages with views and responses. The ViewErrorBag itself is essentially a container for Illuminate\Contracts\Support\MessageBag implementation instances. An...

/blog/2018/04/22/laravel-5-collections-breaking-a-collection-into-a-specified-number-of-groups-with-split

The split method is similar to the chunk method in that it used to break a collection into a smaller number of collections. However, when using the split method, you specify the number of groups you would like the collection split into and it will...

/blog/2018/04/22/laravel-5-collections-calculating-the-median-value-of-a-collection-with-median

In mathematics, the median value is the numeric value that separates the higher half a data sample from the lower half; the median value does not necessarily exist within the data set itself. The median method can be used to get the median value...