*/ public function abilityMap(): array { return [ 'can_update' => 'core.admin.identity.providers.update', ]; } /** * 리소스를 배열로 변환합니다. * * @param Request $request HTTP 요청 객체 * @return array 프로바이더 공개 메타데이터 */ public function toArray(Request $request): array { /** @var IdentityVerificationInterface $p */ $p = $this->resource; return [ 'id' => $p->getId(), 'label' => $p->getLabel(), 'channels' => $p->getChannels(), 'channel_labels' => $p->getChannelLabels(), 'render_hint' => $p->getRenderHint(), 'is_available' => $p->isAvailable(), ...$this->resourceMeta($request), ]; } }