This PC
How to customize label when selecting relationship???
I just started using filament recently, my code is in Select::make('detail_capacity_id')
->relationship(name: 'detailCapacity',
titleAttribute: 'ingredient_id') is displaying ingredient_id, I want it to display the name of the ingredient table and description of the capacity table, what should I do?
9 replies
How to save selected data into its relationship
Fieldset::make('Thông tin thanh toán')
->relationship('billTable')
->schema([
Select::make('table_id')
->label('Bàn')
->relationship('table', 'name')
->placeholder('Tên bàn')
->required(),
]),
])
4 replies