Skip to content

Commit

Permalink
Update ViewMakeCommand.php
Browse files Browse the repository at this point in the history
Replace slashes with dots in paths views
  • Loading branch information
JunaidQadirB authored Apr 26, 2023
1 parent 64af458 commit 0e7ff15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/Commands/ViewMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ protected function replacePlaceholders($stub, $name, $path = null)
$modelSlug = Str::slug(Str::plural(str_to_words($name), 2));

$routeBase = $this->option('route-base') ?? $modelSlug;

$routeBase = str_replace('/', '.', $routeBase);

$viewLabel = str_to_words($name);
$viewLabelPlural = Str::plural(str_to_words($name));
$viewName = Str::camel($name);
Expand Down

0 comments on commit 0e7ff15

Please sign in to comment.