F
Filament11mo ago
This PC

How to save selected data into its relationship

After I have selected the table and want when saving, the table_id will be saved to table_id in the orders table, what should I do?
2 Replies
This PC
This PCOP11mo ago
No description
No description
No description
No description
This PC
This PCOP11mo ago
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(), ]), ])
Want results from more Discord servers?
Add your server