mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
list of nostr plebs added
This commit is contained in:
36
app/Http/Livewire/Nostr/PlebsOverview.php
Normal file
36
app/Http/Livewire/Nostr/PlebsOverview.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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',
|
||||
])
|
||||
->whereNot('nostr')
|
||||
->get()
|
||||
->unique('nostr')
|
||||
->pluck('nostr')
|
||||
->toArray();
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.nostr.plebs-overview');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user