Skip to content

Commit

Permalink
Return early only if no secret argument is present (#54389)
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidlaasri authored Jan 28, 2025
1 parent 8509637 commit 33d61c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/DownCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class DownCommand extends Command
public function handle()
{
try {
if ($this->laravel->maintenanceMode()->active()) {
if ($this->laravel->maintenanceMode()->active() && ! $this->getSecret()) {
$this->components->info('Application is already down.');

return 0;
Expand Down

0 comments on commit 33d61c4

Please sign in to comment.