where('pubkey', $key)->exists()) { $this->fetchProfile([$key]); } // create EinundzwanzigPleb if not exists EinundzwanzigPleb::query()->firstOrCreate(['pubkey' => $key], [ 'npub' => (new Key)->convertPublicKeyToBech32($key), ]); return Profile::query() ->where('pubkey', $key) ->first(); } }