Browse Source

角色详情

kely 10 months ago
parent
commit
470387e344
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Http/Controllers/API/RoleController.php

+ 2 - 0
app/Http/Controllers/API/RoleController.php

@@ -39,6 +39,8 @@ class RoleController extends Controller
     public function show(string $id)
     {
         //
+        $role=Role::query()->findOrFail($id);
+        return RoleResource::collection($role)
     }
 
     /**