orchidsoftware / orchidsoftware/platform

select for the ENUM field from database

Open
#2,992 2 comments 0 reactions 1 assignee View on GitHub

@tabuna is already working on this.

Since Apr 13, 2025.

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

Description

I try to make select for the database ENUM field $table->enum('priority', ['низкий', 'средний', 'высокий'])->default('низкий');, but none of the example fields from ExampleFieldsScreen class can't do the job.

I tried these option

    Select::make('task.priority')
        ->title('Приоритет задачи'),

    Input::make('task.priority')
        ->title('Приоритет задачи')
        ->datalist(['низкий', 'средний', 'высокий'])
        ->horizontal(),

    Relation::make('task')
        ->fromModel(Task::class, 'priority')
        ->title('Select for Eloquent model'),

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.