PHP Fatal error: calling the undefined method Illuminate \ Foundation \ Application :: bindShared () in..Entrust / EntrustServiceProvider.php on line 72

I just installed Entrust to add role based permissions to my Laravel 5.2 based application . But when I try to execute

php artisan vendor:publish

I get this error:

PHP Fatal error: "Calling the undefined method Illuminate \ Foundation \ Application :: bindShared () in .. /vendor/zizaco/entrust/src/Entrust/EntrustServiceProvider.php on line 72"

Can anybody help me?

+4
source share
3 answers

, Laravel 5.1.+. , composer update zizaco/entrust, , composer.json

, , .

+1

repalce bindShared() singleton()

+5

, .

//html/HtmlServiceProvider.php

$this->app->bindShared('form', function($app) 

To

$this->app->singleton('form', function($app)

: 36 40

0

Source: https://habr.com/ru/post/1624577/


All Articles