Skip to content
Prev Previous commit
Next Next commit
fix: only fire event when something was published
  • Loading branch information
ryangjchandler committed Mar 4, 2021
commit 08b48c1a664134a365e1c7469909dc029d79f5e3
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/VendorPublishCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ protected function publishTag($tag)

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

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

/**
Expand Down