Str :: Limit Laravel
use Illuminate\Support\Str;
$truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20 , ' ...');
// The quick brown fox...
Mohamad
use Illuminate\Support\Str;
$truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20 , ' ...');
// The quick brown fox...