Sfoglia il codice sorgente

add new GroupResource(

visuddhinanda 2 anni fa
parent
commit
86957b5851
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/Http/Controllers/GroupController.php

+ 1 - 1
app/Http/Controllers/GroupController.php

@@ -178,7 +178,7 @@ class GroupController extends Controller
                 return $this->error(__('auth.failed'));
             }
         }
-        return $this->ok($result);
+        return $this->ok(new GroupResource($result));
     }
 
     /**