/** * Parse the content before it is saved to the database. * * @param string $value */ public function setContentAttribute($value) { $this->attributes['content'] = $value ? static::$formatter->parse($value, $this) : null; }