New constant that defines which fields a journal query is expected to load.

This commit is contained in:
James Cole 2016-03-02 12:03:53 +01:00
parent a61eafeac2
commit b00c7b0ce3

View File

@ -49,6 +49,11 @@ class TransactionJournal extends Model
{
use SoftDeletes, ValidatingTrait;
/**
* Fields which queries must load..
*/
const QUERYFIELDS = ['transaction_journals.*'];
/** @var array */
protected $dates = ['created_at', 'updated_at', 'date', 'deleted_at', 'interest_date', 'book_date'];