belongsTo('FireflyIII\Models\Budget'); } /** * @return array */ public function getDates() { return ['created_at', 'updated_at', 'startdate']; } /** * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function limitrepetitions() { return $this->hasMany('FireflyIII\Models\LimitRepetition'); } /** * @param $value */ public function setAmountAttribute($value) { $this->attributes['amount'] = strval(round($value, 2)); } }