public function is($role, $all = false)
    {
        if ($this->isPretendEnabled()) {
            return $this->pretend('is');
        }

        return $this->{$this->getMethodName('is', $all)}($this->getArrayFrom($role));
    }
public function is($role, $all = false)
    {
        if ($this->isPretendEnabled()) {
            return $this->pretend('is');
        }

        return $this->{$this->getMethodName('is', $all)}($this->getArrayFrom($role));
    }
public function is ( $ role , $ all = false ) { if ( $ this -> isPretendEnabled ( ) ) { return $ this -> pretend ( 'is' ) ; } return $ this -> { $ this -> getMethodName ( 'is' , $ all ) } ( $ this -> getArrayFrom ( $ role ) ) ; }
Check if the user has a role or roles.

@param int|string|array $role
@param bool $all
@return bool
Check if the user has a role or roles .