Skip to content

Commit 44c95ba

Browse files
committed
Fix MakeEntity Command (When Class Does Not Exist)
1 parent 6a74b91 commit 44c95ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Commands/MakeEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function handle(): int
8080
return 0;
8181
}
8282

83-
if (class_exists($entityNamespace.'\\'.$entityName) && ! $this->option('force')) {
83+
if (class_exists($relativeEntitiesPath.'\\'.$entityName) && ! $this->option('force')) {
8484
$this->alert("Entity \"$entityName\" is already exist!");
8585
return 0;
8686
}

0 commit comments

Comments
 (0)