mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
ptgen api point support parameter & default user
This commit is contained in:
@@ -17,11 +17,11 @@ class Comment extends NexusModel
|
||||
|
||||
public function create_user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user');
|
||||
return $this->belongsTo(User::class, 'user')->withDefault(User::getDefaultUserAttributes());
|
||||
}
|
||||
|
||||
public function update_user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'editedby');
|
||||
return $this->belongsTo(User::class, 'editedby')->withDefault(User::getDefaultUserAttributes());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user