📜  如何在blade.php代码示例中将给定的字符串截断为指定的长度

📅  最后修改于: 2022-03-11 14:54:00.225000             🧑  作者: Mango

代码示例2
#insert this line in blade.php it will truncate your string
#first parameter accept the string to be truncate 
#second parameter accept the lenght 
$third accept waht should print after the truncate string
{{ \Illuminate\Support\Str::limit($string, 150, $end='...') }}