public function getFieldsAttribute()
    {
        $fields = new Collection();

        foreach ($this->attributes['fields'] as $field) {
            if (! ($field instanceof Field)) {
                $field = $this->discord->factory(Field::class, $field, true);
            }

            $fields->push($field);
        }

        return $fields;
    }
public function getFieldsAttribute()
    {
        $fields = new Collection();

        foreach ($this->attributes['fields'] as $field) {
            if (! ($field instanceof Field)) {
                $field = $this->discord->factory(Field::class, $field, true);
            }

            $fields->push($field);
        }

        return $fields;
    }
public function getFieldsAttribute ( ) { $ fields = new Collection ( ) ; foreach ( $ this -> attributes [ 'fields' ] as $ field ) { if ( ! ( $ field instanceof Field ) ) { $ field = $ this -> discord -> factory ( Field :: class , $ field , true ) ; } $ fields -> push ( $ field ) ; } return $ fields ; }
Gets the fields attribute.

@return Collection[Field] The fields attribute.
Gets the fields attribute .