Files
einundzwanzig-portal/app/Http/Livewire/Nostr/PlebsOverview.php
HolgerHatGarKeineNode a2d8c4c416 search nostr plebs
2023-08-22 17:04:05 +02:00

39 lines
794 B
PHP

<?php
namespace App\Http\Livewire\Nostr;
use App\Models\User;
use Livewire\Component;
class PlebsOverview extends Component
{
public array $plebsNpubs = [];
public function mount()
{
$this->plebsNpubs = User::query()
->select([
'email',
'public_key',
'lightning_address',
'lnurl',
'node_id',
'paynym',
'lnbits',
'nostr',
'id',
])
->whereNot('nostr')
->orderByDesc('id')
->get()
->unique('nostr')
->pluck('nostr')
->toArray();
}
public function render()
{
return view('livewire.nostr.plebs-overview');
}
}