调用未定义的函数 str_limit() laravel 6x
这是我的代码,帮帮我
<dt>Description</dt>
<dd style="word-break: break-all;"> {{ str_limit($product ?? '',500,' ...') }}</dd>
最佳答案
在 5.8+ 版本中删除了 str 助手,您必须使用 Illuminate\Support\Str::limit($string)反而
试试这个:
{{ \Illuminate\Support\Str::limit($product, 500, '...') }}
关于php - 调用未定义的函数 str_limit(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59641254/