Add NIP-05 handle management: Introduce migration, API route, and Livewire updates to support NIP-05 handle verification.

 Enhance Nostr fetcher: Refactor profile data merging logic for improved efficiency and accuracy.
🛠
This commit is contained in:
HolgerHatGarKeineNode
2026-01-20 13:56:50 +01:00
parent a857e54d61
commit 34f8d949d5
11 changed files with 669 additions and 106 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\EinundzwanzigPleb;
use Illuminate\Http\Request;
class GetPaidMembers extends Controller
{
public function __invoke($year, Request $request)
{
$paidMembers = EinundzwanzigPleb::query()
->whereHas('paymentEvents', function ($query) use ($year) {
$query->where('year', $year)
->where('paid', true);
})
->select('id', 'npub', 'pubkey', 'nip05_handle')
->get();
return response()->json($paidMembers);
}
}