diff --git a/src/Console/Commands/MakeDTOCommand.php b/src/Console/Commands/MakeDTOCommand.php index 1e56710..62d19f5 100644 --- a/src/Console/Commands/MakeDTOCommand.php +++ b/src/Console/Commands/MakeDTOCommand.php @@ -68,7 +68,7 @@ protected function getStub(): string */ protected function resolveStubPath(string $stub): string { - return file_exists($customPath = $this->laravel->basePath(trim($stub, '/'))) + return file_exists($customPath = $this->laravel->basePath(trim("stubs/{$stub}", '/'))) ? $customPath : __DIR__ . '/../stubs/' . $stub; }