Skip to content

Commit

Permalink
read custom stubs in case developer require custom stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-rady-intcore committed Mar 23, 2024
1 parent f19c131 commit c79b1dc
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 c79b1dc

Please sign in to comment.