mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-13 20:03:45 +02:00
Fix server deletion logic, and clean up suspend/unsuspend operations
This commit is contained in:
@@ -333,6 +333,16 @@ class Server extends Model
|
||||
return $this->hasMany(Database::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets all downloads associated with a server.
|
||||
*
|
||||
* @return \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
*/
|
||||
public function downloads()
|
||||
{
|
||||
return $this->hasMany(Download::class, 'server', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the location of the server.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user