doushitang4276 2015-11-16 09:58
浏览 60

使用Laravel Collective Html找不到“HTML”类

I've replaced the Illuminate\HTML package with the Laravel Collective version and the composer stuff went fine but the ViewEngine still puts HTML instead of Html into my compiled views. I'm getting the following error

FatalErrorException in a59c8f4e39e21fe743ceaf7a4de9f1da line 14:
Class 'HTML' not found

This is the line it complains about

<?php echo HTML::style(elixir('css/backend.css')); ?>

My config/app.php looks like this

'Form'      => 'Collective\Html\FormFacade',
'Html'      => 'Collective\Html\HtmlFacade',

I'm using the Laravel 5 boilerplate from Rappasoft (https://github.com/rappasoft/laravel-5-boilerplate) and I have a feeling they used the Illuminate class somewhere but I can't find where. I've already edited app/Providers/MacrosServiceProvider.php and app/services/Macro.php.

Any ideas? Thanks!

  • 写回答

1条回答 默认 最新

  • drgdn82648 2015-11-16 12:54
    关注

    Silly mistake. Had to delete cached views in storage/app/framework/views

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘