mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-25 17:53:44 +02:00
More subuser Model updates.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user