orchidsoftware / orchidsoftware/platform
select for the ENUM field from database
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.