[WIP] Import Plans

This commit is contained in:
2022-07-07 10:17:46 +07:00
parent f18bb85b94
commit 574004d408
146 changed files with 28928 additions and 71 deletions

View File

@@ -0,0 +1,32 @@
<?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'
];
}
}