Add toggle install status support
This commit is contained in:
parent
7314e70372
commit
99a67127c9
3 changed files with 28 additions and 0 deletions
|
@ -575,4 +575,11 @@ class ServerRepository
|
|||
}
|
||||
}
|
||||
|
||||
public function toggleInstall($id)
|
||||
{
|
||||
$server = Models\Server::findOrFail($id);
|
||||
$server->installed = ($server->installed === 1) ? 0 : 1;
|
||||
return $server->save();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue