public function getPreviewAttribute()
    {
        if ($this->use_html) {
            return 'HTML Content';
        } elseif ($this->path) {
            $row_image = ImageHelper::getImageUrl($this->path);
            return '<img src="' . $row_image . '" class="thumbnail" />';
        }
    }
public function getPreviewAttribute()
    {
        if ($this->use_html) {
            return 'HTML Content';
        } elseif ($this->path) {
            $row_image = ImageHelper::getImageUrl($this->path);
            return '<img src="' . $row_image . '" class="thumbnail" />';
        }
    }
public function getPreviewAttribute ( ) { if ( $ this -> use_html ) { return 'HTML Content' ; } elseif ( $ this -> path ) { $ row_image = ImageHelper :: getImageUrl ( $ this -> path ) ; return '<img src="' . $ row_image . '" class="thumbnail" />' ; } }
Accessor to get preview string

@return string
Accessor to get preview string