Add Update Profile

This commit is contained in:
R
2022-09-20 09:31:26 +07:00
parent fc263e867a
commit 07bfbaefe0
7 changed files with 258 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ class Person extends Model
protected $table = 'persons';
protected $fillable = [
'owner_user_id',
'nik',
'name_prefix',
'name',
@@ -46,4 +47,9 @@ class Person extends Model
{
return $this->morphMany(Meta::class, 'metaable');
}
public function owner()
{
return $this->belongsTo(User::class, 'owner_user_id');
}
}