Skip to content

Commit

Permalink
Merge pull request #25 from bpocallaghan/feature/update-view-name-del…
Browse files Browse the repository at this point in the history
…imeter

View delimiter update
  • Loading branch information
bpocallaghan authored Oct 11, 2023
2 parents df0fd59 + 3b83729 commit 57f141c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ protected function getViewPath($name, $plural = false)
foreach ($pieces as $k => $value) {
if (!in_array($value, config('generators.reserve_words'))) {
if (!$plural) {
$pieces[$k] = Str::snake($pieces[$k]);
$pieces[$k] = Str::snake($pieces[$k], '-');
} else {
$pieces[$k] = Str::plural(Str::snake($pieces[$k]));
$pieces[$k] = Str::plural(Str::snake($pieces[$k], '-'));
}
}
}
Expand Down

0 comments on commit 57f141c

Please sign in to comment.