Zizaco / entrust

Role-based Permissions for Laravel 5
MIT License
6.05k stars 1.29k forks source link

Getting errors when running any artisan command after installing entrust #467

Open qwertytech opened 8 years ago

qwertytech commented 8 years ago

I recently installed Entrust via composer. I've been trying to run the two following commands but they both give me the same error.

php artisan app:name MyApp

and

php artisan entrust:migration

They both give this error: [Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Foundation\Application::bindShared()

mCIN4R commented 8 years ago

Hi qwertytech,

Try this. I hope this will help you. https://github.com/Zizaco/entrust/pull/459#issuecomment-167227538.

DarkCobalt commented 8 years ago

I have this problem too, help: search in project bindShared and rename to singleton()

qwertytech commented 8 years ago

@DarkCobalt I found that answer too but if I ever use composer update it will overwrite my change. I was hoping for a supported fix so that I can continue to use composer update.

tuscan88 commented 8 years ago

I had this issue and fixed it by using the dev-master branch instead. Go into your config/app.php file and comment out the entrust stuff in there. Then update your composer file to use the following instead:

"zizaco/entrust":"dev-master",

Then run composer update and then finally uncomment out the stuff in the app config that you commented out earlier.

andrewmclagan commented 8 years ago

running dev-master on 5.2.10 getting:

[Symfony\Component\Debug\Exception\FatalThrowableError] Fatal error: Class name must be a valid object or a string

Is there a PR for this?

andrewmclagan commented 8 years ago

yes there is, https://github.com/Zizaco/entrust/issues/462