📅  最后修改于: 2022-03-11 14:54:44.179000             🧑  作者: Mango
use Illuminate\Support\Str;
$truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20 , ' ...');
// The quick brown fox...