Laravel 5 Collections: Ensuring a Collection Always Contains a Specified Number of Elements With pad
The pad method will pad the current collection instance's elements up to the provided size with the given value (based on the integer size of the collection). This method will return a new collection instance without affecting the current...