This package contains a set of (silly) Laravel Collection macros. You probably won't need them. Or maybe you do, I don't know, you do you.
Macro methods that are intended for working with collections that contain only numbers.
Returns a set of numbers that are larger than the provided minimum value. Non-inclusive.
// [3, 4]
collect([1, 2, 3, 4])->greaterThan(2);
Returns a set of numbers that are smaller than the provided maximum value. Non-inclusive.
// [1, 2]
collect([1, 2, 3, 4])->lessThan(3);
Returns the result that is gotten by multiplying all the numbers in the collection together.
// 6 (1 * 2 * 3)
collect([1, 2, 3])->multiply();
Macro methods that are intended for working with collections that contain only strings.
Convert all the strings in the collection to their lowercase value.
// ['a', 'b', 'c']
collect(['A', 'B', 'C'])->toLower();
Convert all the strings in the collection to their uppercase value.
// ['A', 'B', 'C']
collect(['a', 'b', 'c'])->toUpper();