App\Models\Presenters\NewsItemPresenter::getExcerptAttribute PHP Method

getExcerptAttribute() public method

public getExcerptAttribute ( $length = 200 ) : Str
return Spatie\String\Str
    public function getExcerptAttribute($length = 200) : Str
    {
        return string($this->text)->tease($length);
    }
NewsItemPresenter