More subuser Model updates.
This commit is contained in:
parent
c8f6c93d26
commit
99812b0407
8 changed files with 54 additions and 55 deletions
|
@ -196,6 +196,16 @@ class Server extends Model
|
|||
return $this->belongsTo(User::class, 'owner_id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the subusers associated with a server.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
*/
|
||||
public function subusers()
|
||||
{
|
||||
return $this->hasMany(Subuser::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the default allocation for a server.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue