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>
str_*
and array_*
helper functions removed from Laravel 6.*
So try to use there class instead of global functions.
Or you can install https://github.com/laravel/helpers package to get both of these types functions.
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, '...') }}
If you are using laravel 5.4 upwards
Please use this like
See Laravel Tutorial for more info.