All notable changes to laravel-collection-macros
will be documented in this file
firstOrFail
will return the item instead of a collection- support for Laravel 5.7
- removed
range
macro
- Fixed: maximum function nesting reached error in
eachCons
- Added: Laravel 5.6 compatibility
- Added:
pluckToArray
- Fixed: Make
parallelMap
return a new collection
- Fixed: Count warning/exception php7.2 in
Transpose
- Added: Allow worker pool of
parallelMap
to be configured
- Added:
parallelMap
- Added:
findOrFail
- Fixed:
transpose
when using an empty array - Fixed:
transpose
when using anArrayable
- Fixed:
transpose
when using a single-row matrix
- Added:
at
- Added:
rotate
- Added:
filterMap
- Added: support for Laravel 5.5, removed support for older versions
- Added:
glob
macro - Removed:
dd
anddump
macros - Changed: Parameter order for
groupByModel
andsectionBy
- Added:
$itemsKey
and$preserveKeys
parameters togroupByModel
- Added:
tail
,eachCons
,sliceBefore
andchunkBy
- Added: customization options for
sectionBy
- Added:
sectionBy
- Fixed:
extract
now returns an instance of the current collection type
- Added:
extract
- Added:
paginate
andsimplePaginate
- Added:
before
andafter
- Added:
collect
- Added:
toPairs
andwithSize
- Removed:
split
,partition
andmapToAssoc
- Renamed:
toAssoc
tofromPairs
- Fixed: Tests
- Added:
partition
method
- Fixed:
split
doesn't throw an error anymore when trying to split an empty collection
- Fixed:
version_compare
fix in 5.3 changes
- Added: Laravel 5.3 compatibility
- Maintenance release to kickstart Packagist after
composer.json
error
- Added:
dump
macro
- Changed:
transpose
will throw an exception when invalid input is given and it'll return a collection of collections
- Added:
transpose
macro
- Added:
assoc
andtoAssoc
macros
- Changed: The collection will be passed to the callbacks of
ifAny
andifEmpty
- Initial release