src/Lego/Widget/Concerns/HasFields.php
public function editableFields()
    {
        $ignored = [];
        foreach ($this->groups() as $group) {
            if ($group->getCondition() && $group->getCondition()->fail()) {
                $ignored = array_merge($ignored, $group->fieldNames());
            }
        }

        return $this->fields()->filter(function (Field $field) use ($ignored) {
            return $field->isEditable() && !in_array($field->name(), $ignored);
        });
    }
public function editableFields()
    {
        $ignored = [];
        foreach ($this->groups() as $group) {
            if ($group->getCondition() && $group->getCondition()->fail()) {
                $ignored = array_merge($ignored, $group->fieldNames());
            }
        }

        return $this->fields()->filter(function (Field $field) use ($ignored) {
            return $field->isEditable() && !in_array($field->name(), $ignored);
        });
    }
public function editableFields ( ) { $ ignored = [ ] ; foreach ( $ this -> groups ( ) as $ group ) { if ( $ group -> getCondition ( ) && $ group -> getCondition ( ) -> fail ( ) ) { $ ignored = array_merge ( $ ignored , $ group -> fieldNames ( ) ) ; } } return $ this -> fields ( ) -> filter ( function ( Field $ field ) use ( $ ignored ) { return $ field -> isEditable ( ) && ! in_array ( $ field -> name ( ) , $ ignored ) ; } ) ; }
only editable fields.

@return Collection|Field[]
only editable fields .