Use other method of collecting query fields. #142

This commit is contained in:
James Cole
2016-04-29 21:52:15 +02:00
parent 94a79876ce
commit 9baadd3793
9 changed files with 19 additions and 41 deletions

View File

@@ -37,7 +37,7 @@ class JournalList implements BinderInterface
$object = TransactionJournal::whereIn('transaction_journals.id', $ids)
->expanded()
->where('transaction_journals.user_id', Auth::user()->id)
->get(TransactionJournal::QUERYFIELDS);
->get(TransactionJournal::queryFields());
if ($object->count() > 0) {
return $object;