Question : {{Str::limit laravel
Answered by : samer-saeid
{{Str::limit($category->name, 20)}}
if to end
{{Str::limit($category->name, 20, $end='.......')}}
or
{{\Illuminate\Support\Str::limit($category->name, 20)}}
Source : | Last Update : Sat, 12 Dec 20
Question : Str::limit laravel
Answered by : mohamad-shahkhajeh
use Illuminate\Support\Str;
$truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20 , ' ...');
// The quick brown fox...
Source : https://laravel.com/docs/8.x/helpers#method-str-limit | Last Update : Tue, 01 Jun 21