12-05-2026 Frontend dev

This commit is contained in:
Kevin Adametz 2026-05-12 18:32:33 +02:00
parent 405df0a122
commit 313270b55f
777 changed files with 67136 additions and 6241 deletions

52
app/Models/Profile.php Normal file
View file

@ -0,0 +1,52 @@
<?php
namespace App\Models;
use Database\Factories\ProfileFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Profile extends Model
{
/** @use HasFactory<ProfileFactory> */
use HasFactory;
protected $fillable = [
'user_id',
'salutation_key',
'title',
'first_name',
'last_name',
'phone',
'address',
'country_code',
'birthdate',
'backlink_url',
'show_stats',
'validation_date',
'contract_date',
'validate_token',
'tax_id_number',
'tax_exempt',
'tax_exempt_reason',
'disable_footer_code',
];
protected function casts(): array
{
return [
'birthdate' => 'date',
'show_stats' => 'boolean',
'validation_date' => 'datetime',
'contract_date' => 'datetime',
'tax_exempt' => 'boolean',
'disable_footer_code' => 'boolean',
];
}
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
}