0

为什么出错,我尝试使用宏

已经加入

"Require": {
"Illuminate / html": "4.2. *"
}

然后它也被添加

'Illuminate\html\HtmlServiceProvider'

和别名:

'Form' => 'Illuminate\html\FormFacade',
'HTML' => 'Illuminate\Html\HtmlFacade'

但仍然是同样的错误

我的宏:app/helpers/frontend.php

HTML :: macro ('divider', function () {
return "<hr class = \" uk-article-divider \ ">";
});

并且已经加载:

app_path require (). '/ helpers / frontend.php';

感谢帮助

4

1 回答 1

0

你不能再使用这个 html 包了"Illuminate / html": "4.2. *"

所以现在你必须使用这个包https://laravelcollective.com/docs/5.2/html

于 2016-07-21T07:45:39.050 回答