From a0bcadb9670dfdd28ef06bffcf4210a30b544b58 Mon Sep 17 00:00:00 2001 From: TCHOUKOUAHA Boris Gautier Date: Fri, 24 Nov 2023 10:46:54 +0100 Subject: [PATCH] update odd --- 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 5b8ca6f..c3716d2 100644 --- a/app/Http/Controllers/Api/OddController.php +++ b/app/Http/Controllers/Api/OddController.php @@ -87,7 +87,7 @@ public function store(Request $request) public function show($id) { $odd = Odd::find($id); - $odd->categorieOdd; + $odd->categorieOdd = $odd->categorieOdd()->orderBy('id', 'asc')->get(); $count = $this->countOscByOdd($id); $odd->count_osc = $count; return $this->sendResponse($odd, 'Odd trouvé');