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