Skip to content
Prev Previous commit
Next Next commit
revert: move event dispatch into else arm
  • Loading branch information
ryangjchandler committed Mar 4, 2021
commit ddb1d024da7797f3dc9bce2dfb41440681f5cf54
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/VendorPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ protected function publishTag($tag)
$published = true;
}

$this->laravel['events']->dispatch(new VendorTagPublished($tag, $pathsToPublish));

if ($published === false) {
$this->error('Unable to locate publishable resources.');
} else {
$this->laravel['events']->dispatch(new VendorTagPublished($tag, $pathsToPublish));
}
}

Expand Down