mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
New charts + tests.
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user