diff --git a/src/Illuminate/Foundation/ComposerScripts.php b/src/Illuminate/Foundation/ComposerScripts.php index 6a5f0df49199..8cf568409138 100644 --- a/src/Illuminate/Foundation/ComposerScripts.php +++ b/src/Illuminate/Foundation/ComposerScripts.php @@ -54,6 +54,10 @@ protected static function clearCompiled() { $laravel = new Application(getcwd()); + if (is_file($configPath = $laravel->getCachedConfigPath())) { + @unlink($configPath); + } + if (is_file($servicesPath = $laravel->getCachedServicesPath())) { @unlink($servicesPath); }