Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@vitorccs vitorccs released this 19 Jul 22:47
d1a6a4a

v2.0

  • Adds importing feature (can import from Laravel Disks, local files, strings or resources)
  • In the exporting feature, adds new method "stream" to retrieve the exported content as a PHP stream
  • Improved coverage of unit tests

Break change:

It is required to change the importing namespace:

// v1.0 (old)
use Vitorccs\LaravelCsv\Concerns\Exportable;
use Vitorccs\LaravelCsv\Concerns\FromArray;
use Vitorccs\LaravelCsv\Concerns\FromCollection;
use Vitorccs\LaravelCsv\Concerns\FromQuery;
// v2.0 (new)
use Vitorccs\LaravelCsv\Concerns\Exportables\Exportable;
use Vitorccs\LaravelCsv\Concerns\Exportables\FromArray;
use Vitorccs\LaravelCsv\Concerns\Exportables\FromCollection;
use Vitorccs\LaravelCsv\Concerns\Exportables\FromQuery;