orchidsoftware / orchidsoftware/platform

Matrix column names define child input names.

Open
#3,024 0 comments 0 reactions 1 assignee View on GitHub

@tabuna is already working on this.

Since Jun 24, 2025.

Dominant language
PHP
Stars
4.8k
Forks
663
Avg merge
1d 9h
Merged PRs (30d)
7

Description

I have a simple matrix below, the column names seem to define the input/textarea names regardless of naming in the Input::make() function.

Matrix::make('units')
    ->columns([
        'Id',
        'Unit',
        'Vlan',
            ])
    ->fields([
        'Id' => Input::make('id'),
        'name' => Input::make('name'),
        'vlan' => Input::make('vlan'),
    ]),

The current code above is what I'd love, however the markup displayed shows the below on the name attributes of the inputs and the data won't display to the correct input.

Image

It would be fantastic if the names to the columns would have zero impact on the output of the mark up of the textareas or inputs when outputted, this would allow database naming conventions while column names could be more human friendly without the need to reindex arrays after requests, this would also provide easier options to run validation against those inputs without once again managing indexing against different model names.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.