2015-04-08 25 views
2

我试图通过作曲家从image intervention homepage安装安装介入/图像类,但它与下面的错误结束:Laravel 5错误时更新/安装介入/图像

F:\Laravel\ecommerce>composer require intervention/image 
Using version ~2.1 for intervention/image 
./composer.json has been updated 
Loading composer repositories with package information 
Updating dependencies (including require-dev) 
Nothing to install or update 
Writing lock file 
Generating autoload files 



    [Symfony\Component\Debug\Exception\FatalErrorException] 
    Call to undefined method Illuminate\Foundation\Application::getCachedCompil 
    ePath() 



Script php artisan clear-compiled handling the post-update-cmd event returned wi 
th an error 



    [RuntimeException] 
    Error Output: 



require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] 
[--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort- 
packages] [packages1] ... [packagesN] 

试图研究同一个错误,但没有发现任何。这里有什么问题?以及如何解决这个:)?

谢谢

回答

3

这是升级Laravel版本时的一个错误。

删除vendor/compiled.php将解决此问题。

+0

这真的很有帮助。日Thnx –