douduiwei2831 2016-01-22 08:22
浏览 512

未找到Laravel类'干预\ Image \ ImageServiceProvider'

this question is asked many times and I did all the introductions I could found but I still get this error message.

I updated my config/app.php (

providers:

Intervention\Image\ImageServiceProvider::class,

aliases:

'Image' => Intervention\Image\Facades\Image::class,

and the composer.json

"intervention/image": "dev-master",

After this I did a composer update but my error message is still the same.. I'm using laravel 5

I did what the link says:

http://image.intervention.io/getting_started/installation

and yeah.. now I'm stuck

Another thing I dont understand is why they say I should write:

'Intervention\Image\ImageServiceProvider' 

in the provider array. Why the ' '? All the other elements in my provider array are written like this:

'Request'   => Illuminate\Support\Facades\Request::class,
'Response'  => Illuminate\Support\Facades\Response::class,
'Route'     => Illuminate\Support\Facades\Route::class,

so I removed the ' ' and addet ::class

the same with the aliases

I dont know if thats okay but maybe someone of you could help me

thanks for help

  • 写回答

1条回答 默认 最新

  • drv16759 2016-01-22 08:54
    关注

    The ::class operator gives the fully qualified class name and was introduced in PHP 5.5 as you can see here. It's perfectly ok to use it if you have PHP >= 5.5.

    I would suggest to check in the vendor directory if the package exists. I use "intervention/image": "^2.3" and everything's working great on L5.1

    评论

报告相同问题?

悬赏问题

  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计