Skip to content

Commit baf81ec

Browse files
authored
Issue #68
1 parent 09765b6 commit baf81ec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Commands/CrudGenerator.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,12 @@ protected function buildViews(): static
278278
$this->buildLayout();
279279

280280
foreach (['index', 'create', 'edit', 'form', 'show'] as $view) {
281-
$path = match ($this->options['stack']) {
282-
'livewire' => $this->isLaravel12() ? "views/{$this->options['stack']}/12/$view" : "views/{$this->options['stack']}/default/$view",
283-
default => "views/{$this->options['stack']}/$view"
284-
};
281+
$path = $this->isCustomStubFolder()
282+
? "views/{$this->options['stack']}/$view"
283+
: match ($this->options['stack']) {
284+
'livewire' => $this->isLaravel12() ? "views/{$this->options['stack']}/12/$view" : "views/{$this->options['stack']}/default/$view",
285+
default => "views/{$this->options['stack']}/$view"
286+
};
285287

286288
$viewTemplate = str_replace(
287289
array_keys($replace), array_values($replace), $this->getStub($path)

0 commit comments

Comments
 (0)