Download the PHP package anthony-dee/collection-macros without Composer
On this page you can find all versions of the php package anthony-dee/collection-macros. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download anthony-dee/collection-macros
More information about anthony-dee/collection-macros
Files in anthony-dee/collection-macros
Package collection-macros
Short Description Set of useful extension macros to the laravel Collection class
License MIT
Homepage https://github.com/anthony-dee/collection-macros
Informations about the package collection-macros
Very short description of the package
This package houses some macros that extend the Laravel
Collection. It currently only contains one, pluckThenGroupBy
Installation
You can install the package via composer:
Usage
pluckThenGroupBy
A combination of the native groupBy and pluck methods. It takes up to three keys and at least two. The first is the $groupBy key, the second ($pluckValue) is value to pluck and the third, if given, is used to key the plucked values.
A good use for this is to prepare a collection to be used as a data source for optgroup labels and option values and text.
Contributing
Please see CONTRIBUTING for details.
Credits
- [Anthony Douglas](https://github.com/ anthony-dee)
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.