All notable changes to laravel-collection-macros
will be documented in this file
- fix: php 8.4 compatibility by @calebdw in #251
- @calebdw made their first contribution in #251
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.14.1...7.14.2
- pluckMany dotted key support by @sfinktah in #248
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.14.0...7.14.1
- Laravel 11.x Compatibility by @laravel-shift in #249
- @laravel-shift made their first contribution in #249
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.13.1...7.14.0
- feat(collectBy): support dot-notation by @innocenzi in #247
- @innocenzi made their first contribution in #247
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.13.0...7.13.1
- add
hasCaseSensitive
andgetCaseSensitive
- drop support for older PHP and Laravel versions
- refactor tests to Pest
- Sfink pluck many values by @sfinktah in #242
- @sfinktah made their first contribution in #242
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.12.4...7.12.5
- Add max depth parameter for recursive macro by @Kyzegs in #240
- @Kyzegs made their first contribution in #240
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.12.3...7.12.4
- support L10
- Fix warnings on running the test suite by @alexmanase in #238
- @alexmanase made their first contribution in #238
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.12.1...7.12.2
- Update containsAll description by @NilLlisterri in #233
- @NilLlisterri made their first contribution in #233
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.12.0...7.12.1
- Update .gitattributes by @angeljqv in #231
- Added
containsAny
andcontainsAll
by @freekmurze and @michaelnabil230
- @angeljqv made their first contribution in #231
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.11.0...7.12.0
- Add
weightedRandom
macro by @freekmurze in #224
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.10.0...7.11.0
- support Laravel 9
- Add
path
macro by @michael-rubel in #220
- @michael-rubel made their first contribution in #220
Full Changelog: https://github.com/spatie/laravel-collection-macros/compare/7.8.0...7.9.0
- add
if
macro
- Fix docblock indentation by @dwightwatson in #211
- Add before and after macros by @shugyosha89 in #213
- Using slice to get the nth element by @mateusjunges in #214
- add
insertAt
macro (#209)
- add
pluckMany
(#207)
- add
firstOrPush
- add getNth macro (#201)
- add support for PHP 8
- add support for Laravel 8
- improve second, third, ... marcros
- use registry over file scan + string manipulation (#179)
- drop support for Laravel 6
- drop support for PHP 7.3 and below
- add PHP 8 support
DO NOT USE: incorrectly tagged
- add PHP 8 support
- add
try
andcatch
macros
- Laravel 7 support
- Laravel 6 support
- Renamed
collect()
macro tocollectBy()
to resolve Laravel 6 compatibility
- require laravel 5.8.4
- remove
join
method as the same implementation has been added to Laravel
- fix
paginate
for pages other than 1
prioritize
will keep the keys of the original item- drop support for Laravel 5.7 and below
- drop support for PHP 7.1 and below
- fix
paginate
for pages other than 1
- add support for Laravel 5.8
- add
join
macro
- add
head
macro
- add methods to get items by human named indexes
parallels
macro tests fix
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