LaravelDaily / laravel-roles-permissions-bouncer

Laravel 6 adminpanel starter boilerplate project with roles-permissions based on Bouncer package.
172 stars 74 forks source link

Post optimize script fails on composer update #3

Open mbariola opened 7 years ago

mbariola commented 7 years ago

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 commented 6 years ago

+1