mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Fix grepping about.
This commit is contained in:
@@ -76,11 +76,11 @@ class Variable
|
||||
|
||||
public function delete($id)
|
||||
{
|
||||
$variable = Models\ServiceVariable::with('ServerVariable')->findOrFail($id);
|
||||
$variable = Models\ServiceVariable::with('serverVariable')->findOrFail($id);
|
||||
|
||||
DB::beginTransaction();
|
||||
try {
|
||||
foreach ($variable->ServerVariable as $svar) {
|
||||
foreach ($variable->serverVariable as $svar) {
|
||||
$svar->delete();
|
||||
}
|
||||
$variable->delete();
|
||||
|
||||
Reference in New Issue
Block a user