Str in laravel

PHP
use Illuminate\Support\Str;

$random = Str::random(40);{{Str::limit($category->name, 20)}}

if to end 
  
{{Str::limit($category->name, 20, $end='.......')}}
             
or
  
{{\Illuminate\Support\Str::limit($category->name, 20)}}            $ composer require cviebrock/eloquent-sluggable
Source

Also in PHP: