diff --git a/app/Factories/NginxVhostFactory.php b/app/Factories/NginxVhostFactory.php index 2f36b92..da38edb 100644 --- a/app/Factories/NginxVhostFactory.php +++ b/app/Factories/NginxVhostFactory.php @@ -142,7 +142,7 @@ class NginxVhostFactory } else { // add certificate - $builder->addItem('add certificate', function(CliMenu $menu) { + $builder->addItem('add certificate', function(CliMenu $menu) use ($vhost) { $result = $menu->askText() ->setPromptText('Enter E-Mail') ->ask();