diff --git a/app/Recipes/Laravel/LaravelRecipe.php b/app/Recipes/Laravel/LaravelRecipe.php index 1694549..c6e051a 100644 --- a/app/Recipes/Laravel/LaravelRecipe.php +++ b/app/Recipes/Laravel/LaravelRecipe.php @@ -73,6 +73,8 @@ public function customize_init(Command $parent_command, string $env_content): st if ($application_env === 'production') { $enable_opcache = $parent_command->confirm("Should OpCache be enabled?"); $this->set_env($env_content, 'OPCACHE_ENABLED', $enable_opcache ? 1 : 0); + }else{ + $this->set_env($env_content, 'OPCACHE_ENABLED', 0); } //