more item tax api fix

This commit is contained in:
Denis Duliçi
2021-01-02 12:05:11 +03:00
parent b060480179
commit c8976b56cf
2 changed files with 46 additions and 3 deletions

View File

@@ -2,9 +2,8 @@
namespace App\Transformers\Common;
use App\Transformers\Setting\Category;
use App\Transformers\Setting\Tax;
use App\Models\Common\Item as Model;
use App\Transformers\Setting\Category;
use League\Fractal\TransformerAbstract;
class Item extends TransformerAbstract
@@ -46,7 +45,7 @@ class Item extends TransformerAbstract
return $this->null();
}
return $this->collection($model->taxes, new Tax());
return $this->collection($model->taxes, new ItemTax());
}
/**