Finally implemented repeated expenses properly. [skip ci]

This commit is contained in:
James Cole
2014-12-30 15:17:01 +01:00
parent c0c37eec7b
commit b451e207e2
17 changed files with 648 additions and 474 deletions

View File

@@ -9,10 +9,10 @@ use Watson\Validating\ValidatingTrait;
class PiggyBank extends Eloquent
{
use ValidatingTrait;
public static $rules
protected $rules
= ['account_id' => 'required|exists:accounts,id', // link to Account
'name' => 'required|between:1,255', // name
'targetamount' => 'required|min:0', // amount you want to save
'targetamount' => 'required|min:0.01|numeric', // amount you want to save
'startdate' => 'date', // when you started
'targetdate' => 'date', // when its due
'repeats' => 'required|boolean', // does it repeat?