riesjart/collection-macros

This package is abandoned and no longer maintained. No replacement package was suggested.

Macros for base Laravel and Eloquent collections

v0.1.2 2018-03-26 09:10 UTC

This package is not auto-updated.

Last update: 2020-03-25 22:38:37 UTC


README

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