Chaneg to ucfirst for Assetmodel -> AssetModel

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-11-13 19:35:56 +00:00
parent 2e340f9a23
commit 7ccbc60ec0

View file

@ -38,7 +38,7 @@ class ItemImportRequest extends FormRequest
$filename = config('app.private_uploads').'/imports/'.$import->file_path;
$import->import_type = $this->input('import-type');
$class = title_case($import->import_type);
$class = ucfirst($import->import_type);
$classString = "App\\Importer\\{$class}Importer";
$importer = new $classString($filename);
$import->field_map = request('column-mappings');