public function hasAnyPermission(...$permissions): bool
    {
        if (is_array($permissions[0])) {
            $permissions = $permissions[0];
        }

        foreach ($permissions as $permission) {
            if ($this->checkPermissionTo($permission)) {
                return true;
            }
        }

        return false;
    }
public function hasAnyPermission(...$permissions): bool
    {
        if (is_array($permissions[0])) {
            $permissions = $permissions[0];
        }

        foreach ($permissions as $permission) {
            if ($this->checkPermissionTo($permission)) {
                return true;
            }
        }

        return false;
    }
public function hasAnyPermission ( ... $ permissions ) : bool { if ( is_array ( $ permissions [ 0 ] ) ) { $ permissions = $ permissions [ 0 ] ; } foreach ( $ permissions as $ permission ) { if ( $ this -> checkPermissionTo ( $ permission ) ) { return true ; } } return false ; }
Determine if the model has any of the given permissions.

@param array ...$permissions

@return bool
@throws \Exception
Determine if the model has any of the given permissions .