mysql8创建json索引
$table->json('region');
$table->rawIndex("(CAST(region->>'$.\"china_code\"' AS CHAR(12)) COLLATE utf8mb4_bin)", 'region_china_code');
推荐文章: