<?php

namespace App\Imports;

use Illuminate\Support\Collection;
use Maatwebsite\Excel\Concerns\ToCollection;
use Maatwebsite\Excel\Concerns\ToArray;
use Maatwebsite\Excel\Concerns\WithHeadingRow;

class PlansImport implements ToArray, WithHeadingRow
{
    /**
    * @param Collection $collection
    */
    // public function collection(Collection $collection)
    // {
    //     foreach ($collection as $row) 
    //     {
    //         User::create([
    //             'name' => $row[0],
    //         ]);
    //     }
    // }

    public function array($row)
    {
        return [
            // 'first' => $row[0],
            // 'kajsdnkjasnd' => 'henlo'
        ];
    }
}
