From a4b7d9e36772ac73e96576a4943e22bfce52880a Mon Sep 17 00:00:00 2001 From: TCHOUKOUAHA Boris Gautier Date: Fri, 24 Nov 2023 10:41:45 +0100 Subject: [PATCH] update categorie odd order --- app/Http/Controllers/Api/OddController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/OddController.php b/app/Http/Controllers/Api/OddController.php index 7429a17..5b8ca6f 100644 --- a/app/Http/Controllers/Api/OddController.php +++ b/app/Http/Controllers/Api/OddController.php @@ -28,7 +28,7 @@ public function index() $odds = Odd::orderBy('id','asc')->get(); foreach ($odds as $odd) { - $odd->categorieOdd; + $odd->categorieOdd = $odd->categorieOdd()->orderBy('id', 'asc')->get(); $count = $this->countOscByOdd($odd->id); $odd->count_osc = $count; }