More singularization and correct file names.
This commit is contained in:
parent
8ba479e51f
commit
19d352619e
11 changed files with 17 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue