Laravel 54 如何使用在 MySQL 中存储 JSON?
$designer->typeids = json_encode($request->typeids);
$designer->save();
mysql5.7中有新的json字段,使用DB类可以存储,如上不能。
推荐文章: