fixed #3
This commit is contained in:
@ -27,7 +27,7 @@ class Invoices extends ApiController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$invoices = Invoice::with('invoice_statuses')->collect();
|
||||
$invoices = Invoice::with(['customer', 'status', 'items', 'payments', 'histories'])->collect();
|
||||
|
||||
return $this->response->paginator($invoices, new Transformer());
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ class Revenues extends ApiController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$revenues = Revenue::with('account', 'customer', 'category')->collect();
|
||||
$revenues = Revenue::with(['account', 'customer', 'category'])->collect();
|
||||
|
||||
return $this->response->paginator($revenues, new Transformer());
|
||||
}
|
||||
|
Reference in New Issue
Block a user