Skip to content

->value method for select #3021

@MasterPapple

Description

@MasterPapple

Describe the bug
When trying to work with Selects making them from a Query or a Model the value method doesn't work

To Reproduce

  1. Create a simple screen and a layout with a select
  2. To the select define ->value($key) with any key in the model

Expected behavior
Sets the base value

Screenshots
Select::make('counties')
->title('Counties')
->fromModel(County::class, 'name', 'name')
->value('Yell')

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version [e.g. 22]

Server (please complete the following information):

  • Platfrom Version: 14.52.0
  • Laravel Version: 12.17.0
  • PHP Version: 8.2.12
  • Database: Mysql

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions