query('typ', IdentityProvider::ENTRA); abort_unless(app(IdentityDrivers::class)->has($type), 404); $this->type = $type; parent::mount(); } public function getTitle(): string { return app(IdentityDrivers::class)->get($this->type)->label().' anbinden'; } protected function mutateFormDataBeforeCreate(array $data): array { $data['type'] = $this->type; $data['config']['attribute_map'] = array_values((array) ($data['config']['attribute_map'] ?? [])); return $data; } protected function afterCreate(): void { Audit::log('identity.provider_created', ['provider' => $this->record->name, 'type' => $this->record->type]); } protected function getRedirectUrl(): string { return IdentityProviderResource::getUrl('edit', ['record' => $this->record]); } }