roles icon indicating copy to clipboard operation
roles copied to clipboard

Error on Implementation in Laravel 5.3

Open httpoz opened this issue 8 years ago • 13 comments

[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)

httpoz avatar Aug 25 '16 09:08 httpoz

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

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

AmmarCodes avatar Aug 26 '16 05:08 AmmarCodes

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

mbouclas avatar Aug 26 '16 10:08 mbouclas

same here

gutig avatar Aug 27 '16 13:08 gutig

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

gutig avatar Aug 27 '16 13:08 gutig

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

httpoz avatar Aug 27 '16 13:08 httpoz

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

emiliomedina21 avatar Aug 30 '16 04:08 emiliomedina21

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

https://github.com/httpoz/roles

httpoz avatar Aug 30 '16 05:08 httpoz

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

emiliomedina21 avatar Aug 30 '16 13:08 emiliomedina21

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 avatar Sep 06 '16 14:09 nikolaynesov

#189

nikolaynesov avatar Sep 07 '16 15:09 nikolaynesov

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..?

MKR-KANI avatar Nov 21 '16 07:11 MKR-KANI

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.

baoanhng avatar Nov 27 '16 14:11 baoanhng

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

yes

jiangguoliang avatar Jun 24 '19 03:06 jiangguoliang