読者です 読者をやめる 読者になる 読者になる

永遠に外国人でいたい

思考ログと技術メモ

Laravel::composer require "illuminate/html:5.0.*"でエラー

$ composer require "illuminate/html:5.0.*"
> php artisan clear-compiled
PHP Fatal error:  Call to undefined method Illuminate\Foundation\Application::bindShared() in /Users/ShotaSAWADA/laravel/blog/vendor/illuminate/html/HtmlServiceProvider.php on line 36

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

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

                                                                                                                                                                                                 
  [RuntimeException]                                                                                                                                                                             
  Error Output: PHP Fatal error:  Call to undefined method Illuminate\Foundation\Application::bindShared() in /Users/ShotaSAWADA/laravel/blog/vendor/illuminate/html/HtmlServiceProvider.php on  
   line 36                                                                                                                                                                                       
                                                                                                                                                                                                 

require [--dev] [--prefer-source] [--prefer-dist] [--no-plugins] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--] [<packages>]...

/vendor/illuminate/htmlHtmlServiceProvider.phpの36行目と49行目にあるbindShared()singleton()に変更すると直った!