Laravel 5 Collections: Conditionally Executing a Callback On a Collection's Elements With unless
The unless method is the logical opposite of the when method. The unless method will execute the provided $callback on the collection; if the provided $value evaluates to false . A $default callback may also be supplied if the provided $value...