Skip to content

Commit

Permalink
dont overwrite existing events
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 1, 2020
1 parent 16d759d commit 7bba4bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Illuminate/Foundation/Console/EventMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class EventMakeCommand extends GeneratorCommand
*/
protected function alreadyExists($rawName)
{
return class_exists($rawName);
return class_exists($rawName) ||
$this->files->exists($this->getPath($this->qualifyClass($rawName)));
}

/**
Expand Down

0 comments on commit 7bba4bf

Please sign in to comment.