collection->map(fn (Permission $permission) => new PermissionResource($permission, $this->query))->all(); } }