Laravel 5.7.13 was released Wednesday with some new collection methods and the ability to return an array of messages in a custom validation rule. First, new empty collection methods were added, including whenEmpty, whenNotEmpty, unlessEmpty, and unlessNotEmpty. For example, the whenEmpty method will fire this callback on an empty collection: …