public function getSummaryAttribute()
    {
        $value = $this->attributes['summary'];

        return strip_tags(strlen($value) > 5 ? $value : substr($this->attributes['content'], 0,
            200));
    }
public function getSummaryAttribute()
    {
        $value = $this->attributes['summary'];

        return strip_tags(strlen($value) > 5 ? $value : substr($this->attributes['content'], 0,
            200));
    }
public function getSummaryAttribute ( ) { $ value = $ this -> attributes [ 'summary' ] ; return strip_tags ( strlen ( $ value ) > 5 ? $ value : substr ( $ this -> attributes [ 'content' ] , 0 , 200 ) ) ; }
Get the summary text

@return mixed
Get the summary text