romanbican / roles

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

Error on Implementation in Laravel 5.3 #185

Open httpoz opened 8 years ago

httpoz commented 8 years ago

[ErrorException] Declaration of Bican\Roles\Traits\HasRoleAndPermission::is(Bican\Roles\Models\Role $role, $all = false) should be compatible with Illuminate\Database\Eloquent\Model::is(Illuminate\Database\Eloquent\Model $model)

AmmarCodes commented 8 years ago

I'm using this package and planning to upgrade to Laravel 5.3.

If it's breaking I'll delay the upgrade.

mbouclas commented 8 years ago

same here, 5.3 broke a lot of packages for me...

gutig commented 8 years ago

same here

gutig commented 8 years ago

@romanbican are you planning on looking into it/providing support for Laravel 5.3??

httpoz commented 8 years ago

Just read through this thread, could shed some light on the lack of activity on this repo https://github.com/romanbican/roles/issues/180

emiliomedina21 commented 8 years ago

@httpoz I've found a solution for L5.3. How can i share the changes in code?

httpoz commented 8 years ago

@emiliomedina21 I just forked, you can throw it here if you don't mind:

https://github.com/httpoz/roles

emiliomedina21 commented 8 years ago

@httpoz Go to https://github.com/emiliomedina21/roles

nikolaynesov commented 8 years ago

Hey guys,

To fix it temporary use this: I. Add VCS Repo to your composer.json "repositories": [ { "type": "vcs", "url": "https://github.com/nikolaynesov/roles.git" } ]

II. Change version of the package in composer.json

"bican/roles": "dev-master",

Hopefully it may help.

nikolaynesov commented 8 years ago

#189

MKR-KANI commented 7 years ago

in the blade, it is throwing an error of ErrorException in Builder.php line 2448: Call to undefined method Illuminate\Database\Query\Builder::isRole() what i need to do..?

baoanhng commented 7 years ago

So Bican has no longer maintained the package, but I think this is a really good roles management package, simple but enough. Is there any chance we have someone to be a contributor without Bican? No disrepectful but I don't want to see this stop, even though there are other forks.

jiangguoliang commented 5 years ago

所以Bican已不再维护包,但我认为这是一个非常好的角色管理包,简单但足够。我们有没有机会成为没有Bican的贡献者?没有不尊重,但我不想看到这个停止,即使有其他的叉子。

yes