doufeiqiong3515
2016-06-07 11:20
浏览 55
已采纳

Laravel 5.2资产实施

When I try to open the assets,I added on my page on the source (css, js),I get the log error at the end of the page.

Here's what I've tried so far:

homepage.blade.php

<link href="{{{asset('/css/bootstrap.css') }}}" rel="stylesheet"> 

Composer.json

"require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.2.*",
        "laravelcollective/html": "^5.2"
    }

composer update from console.

added to app.php->providers

Collective\Html\HtmlServiceProvider::class 

added to app.php->aliases

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

I get this in laravel.log:

local.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Illuminate\Html\HtmlServiceProvider' not found' in /var/www/html/myproject/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php:146

Thanks in advance.

图片转代码服务由CSDN问答提供 功能建议

当我尝试打开资源时,我在源页面上添加了我的页面(css,js),我得到了 页面末尾的日志错误。

这是我到目前为止所尝试的内容:

homepage.blade .php

 &lt; link href =“{{{asset('/ css / bootstrap.css')}}}”rel =“stylesheet”&gt  ;  
   
 
 

Composer.json

 “require”:{
“php  “:”&gt; = 5.5.9“,
”laravel / framework“:”5.2。*“,
”laravelcollective / html“:”^ 5.2“
} 
    
 
 

作曲家更新来自控制台。

添加到 app.php-&gt;提供商

  Collective \ Html \ HtmlServiceProvider :: class 
   
 
 

添加到 app.php-&gt;别名

 'Form'=&gt;  Collective \ Html \ FormFacade :: class,
'Html'=&gt;  Collective \ Html \ HtmlFacade :: class 
   
 
 

我在laravel.log中得到这个:

  local.ERROR:异常'Symfony \ Component \ Debug \ Exception \ FatalErrorException',在/ var / www / html / myproject / vendor / laravel / framework /中显示消息'Class'Linuminate \ Html \ HtmlServiceProvider'not found'  src / Illuminate / Foundation / ProviderRepository.php:146 
   
 
 

提前致谢。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题