2015-04-08 39 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 –