File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -61,17 +61,21 @@ protected function resetBuildEnvironment(): void
61
61
{
62
62
unlink (__DIR__ .'/../../../config/app.php ' );
63
63
rename (__DIR__ .'/../../../box.json.bak ' , __DIR__ .'/../../../box.json ' );
64
+
65
+ $ this ->clearCachedConfiguration (true );
64
66
}
65
67
66
- protected function clearCachedConfiguration (): void
68
+ protected function clearCachedConfiguration (bool $ silent = false ): void
67
69
{
68
70
$ configPath = $ this ->laravel ->getCachedConfigPath ();
69
71
70
72
if (File::exists ($ configPath )) {
71
73
File::delete ($ configPath );
72
74
}
73
75
74
- $ this ->components ->info ('Configuration cache cleared successfully. ' );
76
+ if (! $ silent ) {
77
+ $ this ->components ->info ('Configuration cache cleared successfully. ' );
78
+ }
75
79
}
76
80
77
81
protected function cacheConfiguration (): void
You can’t perform that action at this time.
0 commit comments