'required|between:1,255', 'account_id' => 'required|exists:accounts,id', 'targetdate' => 'date', 'amount' => 'required|min:0', 'target' => 'required|min:1', 'order' => 'required:min:1', ]; public function account() { return $this->belongsTo('Account'); } public function getDates() { return array('created_at', 'updated_at', 'targetdate'); } }