bug fixes
This commit is contained in:
parent
cc40f51f84
commit
1da8f6bc26
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
<?php namespace App\Http\Controllers;
|
||||
|
||||
use App\Ninja\Transformers\ProductTransformer;
|
||||
use Auth;
|
||||
use Str;
|
||||
use DB;
|
||||
|
|
@ -72,7 +73,7 @@ class ProductApiController extends BaseAPIController
|
|||
|
||||
$product->save();
|
||||
|
||||
$transformer = new InvoiceTransformer(\Auth::user()->account, Input::get('serializer'));
|
||||
$transformer = new ProductTransformer(\Auth::user()->account, Input::get('serializer'));
|
||||
$data = $this->createItem($product, $transformer, 'products');
|
||||
|
||||
return $this->response($data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue