clean-code-studio/extend-laravel-collections

Extend Laravel Collections Using Macros

dev-master 2019-01-18 01:05 UTC

This package is auto-updated.

Last update: 2024-05-18 17:41:50 UTC


README

Methods

  • listify($property)

Example Usage

  $categories = App\Post::first()->categories;
    
  $categoriesList = $categories->listify('name');