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)}}
1use Illuminate\Support\Str;
2
3$truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20 , ' ...');
4
5// The quick brown fox...