Exemplo n.º 1
0
 /**
  * Format a string of post content using the set formatter.
  *
  * @param  string  $content
  * @return string
  */
 protected static function formatBio($content)
 {
     return static::$formatter->format($content);
 }
Exemplo n.º 2
0
 /**
  * Get the content rendered as HTML.
  *
  * @param string $value
  * @return string
  */
 public function getContentHtmlAttribute($value)
 {
     return static::$formatter->render($this->attributes['content'], $this);
 }
Exemplo n.º 3
0
 /**
  * Format a string of post content using the set formatter.
  *
  * @param  string  $content
  * @return string
  */
 protected static function formatContent($post)
 {
     return static::$formatter->format($post->content, $post);
 }