Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post optimize script fails on composer update #3

Open
mbariola opened this issue Aug 20, 2017 · 1 comment
Open

Post optimize script fails on composer update #3

mbariola opened this issue Aug 20, 2017 · 1 comment

Comments

@mbariola
Copy link

mbariola commented Aug 20, 2017

Hello,
not exactly a problem with your package but with Bouncer, but I thought it might help others.

What I am trying to do: Install a clean laravel-roles-permissions-bouncer

What I do:
I follow all the outlined steps for installation, which finishes with no errors. Then I want to update the packages, so I issue composer update

What I get:

Error Declaration of Silber\Bouncer\Database\HasRolesAndAbilities::isNot($role) should be compatible with Illuminate\Database\Eloquent\Model::isNot(Illuminate\Database\Eloquent\Model $model)

This seems due to an incompatibility between Bouncer and Laravel versions 5.4.x with x at least 31 and up (it seems), as noted in this issue

(Temporary) Solution: either change composer.json line from
"silber/bouncer": "v1.0.0-beta.2"
to
"silber/bouncer": "v1.0.0-beta.3"

OR

change composer.json line from
"laravel/framework": "5.4.*",
to
"laravel/framework": "5.4.28",

@yavuzkoca
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants