More singularization and correct file names.

This commit is contained in:
Dane Everitt
2017-02-12 16:03:17 -05:00
parent 8ba479e51f
commit 19d352619e
11 changed files with 17 additions and 17 deletions

View File

@@ -76,11 +76,11 @@ class Variable
public function delete($id)
{
$variable = Models\ServiceVariable::with('serverVariables')->findOrFail($id);
$variable = Models\ServiceVariable::with('ServerVariable')->findOrFail($id);
DB::beginTransaction();
try {
foreach ($variable->serverVariables as $svar) {
foreach ($variable->ServerVariable as $svar) {
$svar->delete();
}
$variable->delete();