another item tax api fix

This commit is contained in:
Denis Duliçi 2021-01-02 12:31:50 +03:00
parent 2f9f7b6d36
commit 84b3e6914c

View File

@ -35,7 +35,7 @@ class Items extends ApiController
*/
public function show($id)
{
$item = Item::with('category', 'tax')->find($id);
$item = Item::with('category', 'taxes')->find($id);
return $this->response->item($item, new Transformer());
}