src/Traits/HasRoleAndPermission.php
public function hasOneRole($role)
    {
        foreach ($this->getArrayFrom($role) as $role) {
            if ($this->checkRole($role)) {
                return true;
            }
        }

        return false;
    }
public function hasOneRole($role)
    {
        foreach ($this->getArrayFrom($role) as $role) {
            if ($this->checkRole($role)) {
                return true;
            }
        }

        return false;
    }
public function hasOneRole ( $ role ) { foreach ( $ this -> getArrayFrom ( $ role ) as $ role ) { if ( $ this -> checkRole ( $ role ) ) { return true ; } } return false ; }
Check if the user has at least one of the given roles.

@param int|string|array $role

@return bool
Check if the user has at least one of the given roles .