Skip to content

Commit

Permalink
Merge pull request #75 from MarkRady/bugFix/fix-customuze-stubs
Browse files Browse the repository at this point in the history
read custom stubs in case developer require custom stubs
  • Loading branch information
WendellAdriel authored Apr 8, 2024
2 parents f19c131 + c79b1dc commit 1261251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Commands/MakeDTOCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1261251

Please sign in to comment.