Ad

PHP Fatal Error: Call To Undefined Method Illuminate\Foundation\Application::bindShared() In ..Entrust/EntrustServiceProvider.php On Line 72

I've just installed Entrust to add Role-based Permissions to my application based on Laravel 5.2. But when I try to execute

php artisan vendor:publish

I get this error :

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

can anyone help me?

Ad

Answer

You are using previous version that is not compatible with Laravel 5.1.+. Make sure you are using latest version or run composer update zizaco/entrust to update this package to latest version that is defined in composer.json

If you look at this commit you will set it has been already changed a while ago.

Ad
source: stackoverflow.com
Ad