Lots of changes

This commit is contained in:
Simon Pocrnjič
2024-11-13 22:11:07 +01:00
parent 90a5858320
commit 953ff38d64
76 changed files with 2822 additions and 427 deletions
+6
View File
@@ -26,6 +26,12 @@ class PersonAddress extends Model
'deleted'
];
protected static function booted(){
static::creating(function (PersonAddress $address) {
$address->user_id = auth()->id();
});
}
public function person(): BelongsTo
{
return $this->belongsTo(\App\Models\Person\Person::class);