4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Laravel5インストール直後のcomposer updateでエラー。

Posted at
% composer update
% php artisan clear-compiled
% php artisan optimize

上記コマンドで以下のエラーが出る場合、vendor/compiled.phpを削除すると直るみたいです。

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


                                                                                                                                                     
  [RuntimeException]                                                                                                                                 
  Error Output: PHP Fatal error:  Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() in /Users/tetsuya/Code/beforea  
  fters/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php on line 28 
PHP Fatal error:  Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath() in /Users/tetsuya/Code/beforeafters/vendor/laravel/framework/src/Illuminate/Foundation/Console/ClearCompiledCommand.php on line 28


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

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?