回答編集履歴
1
追記
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
$temp = [];
|
8
8
|
|
9
|
-
$dept->staffs->each(function(Staff $staff) use ($temp) {
|
9
|
+
$dept->staffs->each(function(Staff $staff) use (&$temp) {
|
10
10
|
|
11
11
|
if (isset($temp[$staff->area->id])) {
|
12
12
|
|