> */ public function toArray(Request $request): array { return [ /** ID of the invitation */ 'id' => $this->resource->id, /** Email */ 'email' => $this->resource->email, /** Role */ 'role' => $this->resource->role, ]; } }