public function parse($text, $context = null) { $parser = $this->getParser($context); $this->events->fire(new ConfigureFormatterParser($parser, $context, $text)); return $parser->parse($text); }
/** * 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; }