by('credentialId', $credentialId); } public function byIdentity(Identity $identity): static { return $this->by('identity', $identity); } protected function setDefaultOrder(): void { $this->orderBy('createdAt', 'ASC'); } }