我当前的代码
<meta name="description" content="Download @yield('description_custom')">
我想为我的“ description_custom”设置限制
我试过了
<meta name="description" content="Download @yield(Str::limit('description_custom', 10))">
但是我收到500错误
我当前的代码
<meta name="description" content="Download @yield('description_custom')">
我想为我的“ description_custom”设置限制
我试过了
<meta name="description" content="Download @yield(Str::limit('description_custom', 10))">
但是我收到500错误
问题解决了
You can edit a variable with came from
'description_custom'
withView::getSections()
In you blade file:或者如果您在laravel 7中,也可以尝试
而你的元数据仍然是