src/DTO/FillableFieldsList.php
public function getOnlyFillable()
    {
        $list = [];

        foreach ($this->items as $item) {
            if ($item->fillable) {
                $list[] = $item;
            }
        }

        return new static($list);
    }
public function getOnlyFillable()
    {
        $list = [];

        foreach ($this->items as $item) {
            if ($item->fillable) {
                $list[] = $item;
            }
        }

        return new static($list);
    }
public function getOnlyFillable ( ) { $ list = [ ] ; foreach ( $ this -> items as $ item ) { if ( $ item -> fillable ) { $ list [ ] = $ item ; } } return new static ( $ list ) ; }
Returns a new list containing only fields that can be filled

@return FillableFieldsList
Returns a new list containing only fields that can be filled