romanbican / roles

Powerful package for handling roles and permissions in Laravel 5
MIT License
1.16k stars 296 forks source link

Declaration of Illuminate\Database\Eloquent\Model::is #198

Open SAIBA0011 opened 8 years ago

SAIBA0011 commented 8 years ago

Hi,

Tried pulling this package into L5.3 and this is the error that i am getting: [Symfony\Component\Debug\Exception\FatalErrorException]
Declaration of Illuminate\Database\Eloquent\Model::is(Illuminate\Database\Eloquent\Model $model) must be compatible with Bican\Roles\Contracts\HasRoleAndPermission::is($role, $all = false)

i have done some research on this particular issue, however this has been resolved, i have tried those suggestions with no success.

baoanhng commented 8 years ago

This package has been deprecated for 5.3 as of some conflictions with the framework. The owner is no longer active. I think you should move for another package for future sake. I'm also looking for a new one now.

If you still want to stick with the package, you may look at other forks

https://github.com/romanbican/roles/issues/185

Ricky-rick commented 7 years ago

We decided to update and maintain a copy of bican roles. This issue is fixed in this copy. You can find it on packagist: https://packagist.org/packages/ultraware/roles