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

后端 未结 5 1511
迷失自我
迷失自我 2021-02-19 01:05

I\'ve just upgraded Laravel from 5.0 to 5.1.

I get this error:

Call to undefined method Illuminate\\Foundation\\Application::bindShared()
5条回答
  •  Happy的楠姐
    2021-02-19 01:42

    Illuminate/html is abandoned. Use Collective/html instead.

    To install it use the following

    composer require "laravelcollective/html":"^5.2.0"
    

    Then in app/app.php file change/add as following
    for providers

    Collective\Html\HtmlServiceProvider::class
    

    and for aliases

    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
    

提交回复
热议问题