Skip to content

Commit

Permalink
added missing column fields..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Feb 20, 2024
1 parent c7a2fff commit 0702847
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Imports/Settings/Categories.php
Expand Up @@ -10,6 +10,11 @@ class Categories extends Import
{
public $request_class = Request::class;

public $columns = [
'name',
'type',
];

public function model(array $row)
{
if (self::hasRow($row)) {
Expand Down
5 changes: 5 additions & 0 deletions app/Imports/Settings/Taxes.php
Expand Up @@ -10,6 +10,11 @@ class Taxes extends Import
{
public $request_class = Request::class;

public $columns = [
'name',
'type',
];

public function model(array $row)
{
if (empty($row)) {
Expand Down

0 comments on commit 0702847

Please sign in to comment.