New charts + tests.

This commit is contained in:
James Cole
2014-07-09 12:56:06 +02:00
parent 138044fb41
commit 5645f7a893
9 changed files with 301 additions and 8 deletions

View File

@@ -48,4 +48,11 @@ class TransactionJournal extends Elegant
return array('created_at', 'updated_at', 'date');
}
public function scopeAfter($query, \Carbon\Carbon $date) {
return $query->where('date','>=',$date->format('Y-m-d'));
}
public function scopeBefore($query, \Carbon\Carbon $date) {
return $query->where('date','<=',$date->format('Y-m-d'));
}
}