🛠️ Add Eloquent factories for ProjectProposal and Election models, integrate HasFactory trait, and update tests with NostrAuth for authentication validation.

This commit is contained in:
HolgerHatGarKeineNode
2026-01-18 22:33:35 +01:00
parent 31fb04caaa
commit 22d3e6aac1
8 changed files with 130 additions and 30 deletions

View File

@@ -2,16 +2,20 @@
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Election extends Model
{
use HasFactory;
protected $guarded = [];
protected function casts(): array
{
return [
'end_time' => 'datetime',
'candidates' => 'array',
];
}
}