Как обрезать строку в Ларавеле
{{ \Illuminate\Support\Str::limit($productVal, 20, $end='...') }}
Elegant Elk
{{ \Illuminate\Support\Str::limit($productVal, 20, $end='...') }}
$text = " hello world ";
$text = trim($text);
=> "hello world"
Removes whitespace from beginning and end of a string