Type issue in category import

This commit is contained in:
Cihan Şentürk
2022-11-21 12:17:58 +03:00
committed by GitHub
parent 9a0a3775ac
commit b619ffbb85
2 changed files with 14 additions and 0 deletions

View File

@ -13,6 +13,15 @@ class Categories extends Import
return new Model($row);
}
public function map($row): array
{
$row = parent::map($row);
$row['type'] = $this->getCategoryType($row['type']);
return $row;
}
public function rules(): array
{
return (new Request())->rules();