1{{Str::limit($category->name, 20)}}
2
3if to end
4
5{{Str::limit($category->name, 20, $end='.......')}}
6
7or
8
9{{\Illuminate\Support\Str::limit($category->name, 20)}}
1#insert this line in blade.php it will truncate your string
2#first parameter accept the string to be truncate
3#second parameter accept the lenght
4$third accept waht should print after the truncate string
5{{ \Illuminate\Support\Str::limit($string, 150, $end='...') }}