Skip to content

Commit 7bba4bf

Browse files
committed
dont overwrite existing events
1 parent 16d759d commit 7bba4bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Illuminate/Foundation/Console/EventMakeCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class EventMakeCommand extends GeneratorCommand
3535
*/
3636
protected function alreadyExists($rawName)
3737
{
38-
return class_exists($rawName);
38+
return class_exists($rawName) ||
39+
$this->files->exists($this->getPath($this->qualifyClass($rawName)));
3940
}
4041

4142
/**

0 commit comments

Comments
 (0)