Answers for "laravel str truncate"

PHP
3

{{Str::limit laravel

{{Str::limit($category->name, 20)}}

if to end 
  
{{Str::limit($category->name, 20, $end='.......')}}
             
or
  
{{\Illuminate\Support\Str::limit($category->name, 20)}}
Posted by: Guest on December-05-2020
0

laravel truncate string laravel 8

use Illuminate\Support\Str;

$truncated = Str::limit('The quick brown fox jumps over the lazy dog', 20);

// The quick brown fox...
Posted by: Guest on March-30-2021

Browse Popular Code Answers by Language