mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-15 07:06:47 +00:00
cleanup and start with nostr
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
<?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',
|
||||
])
|
||||
->whereNotNull('nostr')
|
||||
->orderByDesc('id')
|
||||
->get()
|
||||
->unique('nostr')
|
||||
->pluck('nostr')
|
||||
->toArray();
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.nostr.plebs-overview');
|
||||
}
|
||||
}
|
||||
13
app/Http/Livewire/Nostr/Start.php
Normal file
13
app/Http/Livewire/Nostr/Start.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Livewire\Nostr;
|
||||
|
||||
use Livewire\Component;
|
||||
|
||||
class Start extends Component
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.nostr.start');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user