Fix server deletion logic, and clean up suspend/unsuspend operations
This commit is contained in:
parent
bdfab16af3
commit
de923bbb83
5 changed files with 56 additions and 81 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue