|
9 | 9 | use Maatwebsite\Excel\Concerns\Importable; |
10 | 10 | use Maatwebsite\Excel\Concerns\WithEvents; |
11 | 11 | use Illuminate\Contracts\Queue\ShouldQueue; |
| 12 | +use Maatwebsite\Excel\Concerns\WithStartRow; |
12 | 13 | use Illuminate\Foundation\Bus\PendingDispatch; |
13 | | -use Maatwebsite\Excel\Concerns\WithHeadingRow; |
14 | 14 | use FromHome\ModelUpload\Models\ModelUploadFile; |
15 | 15 | use Maatwebsite\Excel\Concerns\WithBatchInserts; |
16 | 16 | use Maatwebsite\Excel\Concerns\WithChunkReading; |
17 | 17 | use Maatwebsite\Excel\Concerns\SkipsUnknownSheets; |
18 | | -use Maatwebsite\Excel\Concerns\WithMultipleSheets; |
19 | | -use Maatwebsite\Excel\Concerns\WithCustomStartCell; |
20 | 18 | use FromHome\ModelUpload\Jobs\ProcessModelRecordJob; |
21 | 19 |
|
22 | | -abstract class AbstractModelRecordImport implements ShouldQueue, SkipsUnknownSheets, WithBatchInserts, WithChunkReading, WithCustomStartCell, WithEvents, WithHeadingRow, WithMultipleSheets |
| 20 | +abstract class AbstractModelRecordImport implements ShouldQueue, SkipsUnknownSheets, WithBatchInserts, WithChunkReading, WithStartRow, WithEvents |
23 | 21 | { |
24 | 22 | use Importable; |
25 | 23 |
|
@@ -72,19 +70,10 @@ public function registerEvents(): array |
72 | 70 | ]; |
73 | 71 | } |
74 | 72 |
|
75 | | - public function sheets(): array |
76 | | - { |
77 | | - return [ |
78 | | - 'DATA' => $this, |
79 | | - ]; |
80 | | - } |
81 | | - |
82 | | - public function onUnknownSheet($sheetName): void |
83 | | - { |
84 | | - } |
| 73 | + public function onUnknownSheet($sheetName): void {} |
85 | 74 |
|
86 | | - public function startCell(): string |
| 75 | + public function startRow(): int |
87 | 76 | { |
88 | | - return ModelUpload::importStartCell(); |
| 77 | + return ModelUpload::importStartRow(); |
89 | 78 | } |
90 | 79 | } |
0 commit comments