diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index b2c4b84bf..9184eb354 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -141,7 +141,7 @@ public function installFrankenPhpServer() if (File::exists($gitIgnorePath)) { $contents = File::get($gitIgnorePath); - $filesToAppend = collect(['/caddy', 'frankenphp', 'frankenphp-worker.php']) + $filesToAppend = collect(['**/caddy', 'frankenphp', 'frankenphp-worker.php']) ->filter(fn ($file) => ! str_contains($contents, $file.PHP_EOL)) ->implode(PHP_EOL);