Get correct fields.

This commit is contained in:
James Cole 2015-10-03 17:55:08 +02:00
parent 0bd18f94ac
commit ba6f4268f0

View File

@ -154,7 +154,9 @@ class BillRepository implements BillRepositoryInterface
}
$journals = new Collection;
if (count($ids) > 0) {
$journals = Auth::user()->transactionjournals()->transactionTypes(['Withdrawal'])->whereIn('transaction_journals.id', $ids)->get();
$journals = Auth::user()->transactionjournals()->transactionTypes(['Withdrawal'])->whereIn('transaction_journals.id', $ids)->get(
['transaction_journals.*']
);
}
return $journals;