public function getFields()
    {
        $fields = array_keys($this->fillable);
        if (!empty($fields) && is_integer($fields[0]))
            // only alias provided
            $fields = array_values($this->fillable);

        return array_merge($fields, $this->appends, array_keys($this->attributes));
    }
public function getFields()
    {
        $fields = array_keys($this->fillable);
        if (!empty($fields) && is_integer($fields[0]))
            // only alias provided
            $fields = array_values($this->fillable);

        return array_merge($fields, $this->appends, array_keys($this->attributes));
    }
public function getFields ( ) { $ fields = array_keys ( $ this -> fillable ) ; if ( ! empty ( $ fields ) && is_integer ( $ fields [ 0 ] ) ) // only alias provided $ fields = array_values ( $ this -> fillable ) ; return array_merge ( $ fields , $ this -> appends , array_keys ( $ this -> attributes ) ) ; }
Getter for the model's field names.

This method will merge the `fillable` property and the `appends`
properties into one array of field names.

@param   array   $fieldNames     An array of field names
@return  \NEM\Models\ModelInterface
Getter for the model s field names .