This commit is contained in:
denisdulici
2017-09-18 16:58:25 +03:00
parent cb179c27eb
commit 4ba7734055
10 changed files with 12 additions and 16 deletions

View File

@ -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());
}

View File

@ -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());
}