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