From b9e95592dea7ce235a7228cf67437a5d69cd7cef Mon Sep 17 00:00:00 2001 From: Fred Bradley CSWEB02 Date: Tue, 3 Sep 2024 15:03:19 +0100 Subject: [PATCH] forget year 9 --- app/Http/Controllers/ApiController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/ApiController.php b/app/Http/Controllers/ApiController.php index 453324b..1372e66 100644 --- a/app/Http/Controllers/ApiController.php +++ b/app/Http/Controllers/ApiController.php @@ -32,6 +32,8 @@ public function getHouseData(string $house): JsonResponse return $item->boardingHouse == $house; })->groupBy(['yearGroup']); + $allPupils->forget(9); + $result = []; foreach ($allPupils as $yearGroup => $pupils) {