Skip to content

Commit 788de1b

Browse files
committed
Fix grepping about.
1 parent cea2d04 commit 788de1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Models/ServiceVariable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ServiceVariable extends Model
5454
'required' => 'integer',
5555
];
5656

57-
public function ServerVariable()
57+
public function serverVariable()
5858
{
5959
return $this->hasMany(ServerVariable::class, 'variable_id');
6060
}

app/Repositories/ServiceRepository/Variable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ public function create($id, array $data)
7676

7777
public function delete($id)
7878
{
79-
$variable = Models\ServiceVariable::with('ServerVariable')->findOrFail($id);
79+
$variable = Models\ServiceVariable::with('serverVariable')->findOrFail($id);
8080

8181
DB::beginTransaction();
8282
try {
83-
foreach ($variable->ServerVariable as $svar) {
83+
foreach ($variable->serverVariable as $svar) {
8484
$svar->delete();
8585
}
8686
$variable->delete();

0 commit comments

Comments
 (0)