belongsTo('FireflyIII\Models\Budget'); } /** * @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)); } }