Add Update Profile
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user