belongsTo('FireflyIII\Models\Account'); } /** * @param $value * * @return mixed */ public function getDataAttribute($value) { return json_decode($value); } /** * @return array */ public function getDates() { return ['created_at', 'updated_at']; } /** * @param $value */ public function setDataAttribute($value) { $this->attributes['data'] = json_encode($value); } }