uuid; if ($database->getMorphClass() === ServiceDatabase::class) { $server = data_get($database, 'service.server'); } instant_remote_process([dockerRemoveCommand("{$uuid}-proxy")], $server); $database->save(); DatabaseProxyStopped::dispatch(); } }