Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

User.php error #204

Open
Eductiveo opened this issue Dec 24, 2016 · 1 comment
Open

User.php error #204

Eductiveo opened this issue Dec 24, 2016 · 1 comment

Comments

@Eductiveo
Copy link

Eductiveo commented Dec 24, 2016

Hello,

I have this in my User.php (model)

<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Bican\Roles\Traits\HasRoleAndPermission;
use Bican\Roles\Contracts\HasRoleAndPermission as HasRoleAndPermissionContract;

class User extends Authenticatable implements HasRoleAndPermissionContract
{
    use Notifiable, HasRoleAndPermission;

When I visit my website, I get this error:

FatalErrorException in User.php line 11:
Declaration of Illuminate\Database\Eloquent\Model::is() must be compatible with Bican\Roles\Contracts\HasRoleAndPermission::is($role, $all = false)

Hope someone can help me

@Ricky-rick
Copy link

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

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

No branches or pull requests

2 participants