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 PC5mo ago
No description
No description
No description
No description
This PC
This PC5mo 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(), ]), ])