Skip to content

Commit 33d61c4

Browse files
authored
Return early only if no secret argument is present (#54389)
1 parent 8509637 commit 33d61c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/Console/DownCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class DownCommand extends Command
4242
public function handle()
4343
{
4444
try {
45-
if ($this->laravel->maintenanceMode()->active()) {
45+
if ($this->laravel->maintenanceMode()->active() && ! $this->getSecret()) {
4646
$this->components->info('Application is already down.');
4747

4848
return 0;

0 commit comments

Comments
 (0)