Skip to content

Commit 0617c5a

Browse files
committed
Change import start cell to row
1 parent a270dc9 commit 0617c5a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/ModelUpload.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313

1414
final class ModelUpload
1515
{
16-
private static string $importStartCell = 'A1';
16+
private static int $importStartRow = 1;
1717

18-
public static function importStartCell(): string
18+
public static function importStartRow(): int
1919
{
20-
return self::$importStartCell;
20+
return self::$importStartRow;
2121
}
2222

23-
public static function useImportStartCell(string $importStartCell): void
23+
public static function useImportStartRow(int $importStartRow): void
2424
{
25-
self::$importStartCell = $importStartCell;
25+
self::$importStartRow = $importStartRow;
2626
}
2727

2828
/**
@@ -55,7 +55,10 @@ public static function storeModelUploadFile(Request $request, array $meta = [],
5555
$file = $request->file('file');
5656

5757
return $action->handle(
58-
$request->user(), $file, $modelType ?? $request->input('model_type'), $meta
58+
$request->user(),
59+
$file,
60+
$modelType ?? $request->input('model_type'),
61+
$meta
5962
);
6063
}
6164
}

0 commit comments

Comments
 (0)