0
我與L5..1.4Laravel 5.1.4委託設立
委託設立的問題,這是我做的:
/*
* Application Service Providers...
*/
App\Providers\AppServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Zizaco\Entrust\EntrustServiceProvider::class,
和這樣的:....
'Storage' => Illuminate\Support\Facades\Storage::class,
'URL' => Illuminate\Support\Facades\URL::class,
'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Entrust' => Zizaco\Entrust\EntrustFacade::class,
而且它不工作...崩潰我的整個PHP工匠(當我運行PHP的工匠):
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::bindShared()
我用它來安裝委託:
"zizaco/entrust": "dev-laravel-5"
,然後作曲家更新。現在EntrustServiceProvider在供應商/ zizaco/entrust/src/entrust/...
有什麼想法嗎?
composer install
接下來在config \ app.php添加到供應商陣列:
'Zizaco\Entrust\EntrustServiceProvider',
和
您可以運行composer dump-autoload並重試。 – MaXi32