Call to a function trim() on string laravel

PHP
{{ \Illuminate\Support\Str::limit($productVal, 20, $end='...') }}
Source

Also in PHP: