Files
laraundfelix/app/Domain/Identity/Party.php
T
LarsandCursor 2035c46edd
Deploy Test / test (push) Successful in 2m25s
Deploy Test / deploy (push) Failing after 25s
Stelle das U0-Fundament mit CMS, Mitgliedern und Filament bereit.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-15 08:32:14 +01:00

33 lines
564 B
PHP

<?php
namespace App\Domain\Identity;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasOne;
class Party extends Model
{
protected $fillable = [
'type',
'display_name',
];
protected function casts(): array
{
return [
'type' => PartyType::class,
];
}
public function user(): HasOne
{
return $this->hasOne(User::class);
}
public function profile(): HasOne
{
return $this->hasOne(Profile::class);
}
}