feat: initial project with Phase 1 complete

This commit is contained in:
2026-04-03 19:56:38 +02:00
commit 904cf1241b
132 changed files with 17894 additions and 0 deletions

37
app/Models/Subscriber.php Normal file
View File

@@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Subscriber extends Model
{
use HasFactory;
protected $fillable = [
'preregistration_page_id',
'first_name',
'last_name',
'email',
'phone',
'synced_to_mailwizz',
'synced_at',
];
protected function casts(): array
{
return [
'synced_to_mailwizz' => 'boolean',
'synced_at' => 'datetime',
];
}
public function preregistrationPage(): BelongsTo
{
return $this->belongsTo(PreregistrationPage::class);
}
}