Call to undefined function str_limit() laravel 6x this my code , help me
<dt>Description</dt>
<dd style="word-break: break-all;"> {{ str_limit($product ?? '',500,' ...') }}</dd>
In version 5.8+ str helpers got removed you must use Illuminate\Support\Str::limit($string) instead
Try this one:
{{ \Illuminate\Support\Str::limit($product, 500, '...') }}
Just install laravel helpers
composer require laravel/helpers
Repository
Here is your solution. I hope it has helped you:
{{\Illuminate\Support\Str::limit($product, 500)}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With