mrbenosborne / super-collection
Enhances the Collection class provided by Laravel.
1.0.0
2020-09-03 13:10 UTC
Requires
- php: >=7.0
- illuminate/support: ^5.5|^6|^7
Requires (Dev)
- laravel/framework: 5.5.x
- phpunit/phpunit: 9.3.x
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());