mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
24 lines
469 B
PHP
24 lines
469 B
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Imports\Services;
|
|
|
|
use Maatwebsite\Excel\Concerns\WithHeadingRow;
|
|
use Illuminate\Support\Collection;
|
|
use Maatwebsite\Excel\Concerns\ToCollection;
|
|
|
|
|
|
class GenericImport implements ToCollection, WithHeadingRow
|
|
{
|
|
function headingRow(): int { return 1; }
|
|
|
|
public $rows;
|
|
|
|
/**
|
|
* @param Collection $collection
|
|
*/
|
|
public function collection(Collection $collection)
|
|
{
|
|
$this->rows = $collection;
|
|
}
|
|
}
|