Example #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);
 }
Example #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);
 }
Example #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);
 }