$this->id, 'name' => $this->name, 'permissions' => PermissionResource::collection($this->permissions), ]; } }