LoginSignup
1
0

More than 5 years have passed since last update.

Laravel5.2でCall to undefined method Illuminate\Foundation\Application::bindShared()

Posted at

Laravel5.2でcomposer install後などに下記のエラーが出る事がある。

Call to undefined method Illuminate\Foundation\Application::bindShared()

原因

Applicationクラスのメソッド名変更。bindShare()が5.2ではsingleton()に変わっているらしい。

解決策

$app->bindShare()の呼び出しを$app->singleton()に変更すれば動く。

参考

1
0
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
1
0