Skip to content

Commit e426529

Browse files
authored
Issue #68
1 parent baf81ec commit e426529

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Commands/GeneratorCommand.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ protected function getStub(string $type, bool $content = true): string
163163
$stub_path = __DIR__.'/../stubs/';
164164
}
165165

166-
$path = Str::finish($stub_path, '/')."$type.stub";
166+
$path = Str::finish($stub_path, '/').strtolower("$type.stub");
167167

168168
if (! $content) {
169169
return $path;
@@ -172,6 +172,17 @@ protected function getStub(string $type, bool $content = true): string
172172
return $this->files->get($path);
173173
}
174174

175+
protected function isCustomStubFolder(): bool
176+
{
177+
$stub_path = config('crud.stub_path', 'default');
178+
179+
if (blank($stub_path) || $stub_path == 'default') {
180+
return false;
181+
}
182+
183+
return true;
184+
}
185+
175186
/**
176187
* @param int $no
177188
*

0 commit comments

Comments
 (0)