voting system with nostr added

This commit is contained in:
fsociety
2024-09-29 01:02:04 +02:00
parent a0ef037b2d
commit 354680f702
43 changed files with 3017 additions and 20688 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Models;
use App\Enums\AssociationStatus;
use Illuminate\Database\Eloquent\Model;
class EinundzwanzigPleb extends Model
@@ -9,6 +10,13 @@ class EinundzwanzigPleb extends Model
protected $guarded = [];
protected function casts(): array
{
return [
'association_status' => AssociationStatus::class,
];
}
public function profile()
{
return $this->hasOne(Profile::class, 'pubkey', 'pubkey');

10
app/Models/Election.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Election extends Model
{
protected $guarded = [];
}