Version
Current release: v0.1.2
This repository uses Semantic Versioning (SemVer) v2.0.0.
Requirements
- PHP >= 7.1
- Laravel 5.5 or 5.6
Installation
Pull this package in through Composer.
composer require riesjart/collection-macros "^0.1"
There is no service provider that needs to be registered in your Laravel application.
Features
Base collection macros
- combinations
- defaults
- pluckSimple
- prefix
- replaceKey
- replaceKeys
- toEloquent
Eloquent collection macros
- hideRelations
- swapPivot