0
所以基本上我有两个表,GameIDs表与client_game_id(int)列和设置表与订阅(整数[])数组类型列。有多个选择表单,列出game_ids中的所有游戏id,并将它们存储在数组类型列中。表格没有关系。Laravel Postgres整数[]列插入从多个选择形式
<div class="form-group">
<label for="games">Games</label><br>
<select name="games" id="games" class="selectpicker" multiple data-selected-text-format="count > 3" title="Choose games...">
@foreach($clientgameids as $clientgameid)
<option value="{{ $clientgameid->client_game_id }}">{{ $clientgameid->client_game_name }}</option>
@endforeach
</select>
</div>
我怎么前缀每个项目集合在“{}”,因为laravel不支持数组[]列,并将其存储在表?