我有一个名为 $ applied_exams 的集合,其中包含以下数据
Collection {#2033 ▼#items: array:4 [▼
0 => {#2035 ▼
+"post_id": 1
+"designation_id": 9
+"token_number": 438
+"name": "TECHNICIAN TELECOM"
+"adb": "2074-06-23"
+"ContainMultiplePost": false
+"Group_id": 8
}
1 => {#2034 ▼
+"post_id": 11
+"designation_id": 1
+"token_number": 740
+"name": "DEPUTY MANAGER TELECOM"
+"adb": "2074-06-25"
+"ContainMultiplePost": false
+"Group_id": 1
}
2 => {#2040 ▼
+"post_id": 3
+"designation_id": 12
+"token_number": 2810
+"name": "ASST. BUSINESS OFFICER"
+"adb": "2074-10-24"
+"ContainMultiplePost": true
+"Group_id": 7
}
3 => {#2039 ▼
+"post_id": 2
+"designation_id": 8
+"token_number": 2811
+"name": "ASST. ADMINISTRATIVE OFFICER"
+"adb": "2074-10-24"
+"ContainMultiplePost": true
+"Group_id": 7
}]}
我想用重复的group_id取消设置数据。我只想要一个group_id的一个数据。在这种情况下,我只想删除$ applied_exam [3],因为group_id与$ applied_exams [2]相同。请帮忙。感谢