mrbenosborne/super-collection

Enhances the Collection class provided by Laravel.

1.0.0 2020-09-03 13:10 UTC

This package is auto-updated.

Last update: 2024-10-29 00:31:52 UTC


README

Enhances the Collection class provided by Laravel.

Install

composer require mrbenosborne/super-collection

Documentation

Methods

CSV File

Create a Collection from a CSV file.

<?php

include 'vendor/autoload.php';

use SuperCollection\Collection;

// Create a new collection from CSV file
$collection = Collection::fromCSVFile(__DIR__ . '/data.csv');

// Dump the collection
dd($collection->all());