Skip to content

Commit 73060db

Browse files
committed
fix wrong component generation
1 parent fc77933 commit 73060db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/Illuminate/Foundation/Console/ComponentMakeCommand.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ protected function buildClass($name)
9999
*/
100100
protected function getView()
101101
{
102-
return collect(explode('/', $this->argument('name')))
102+
$name = str_replace('\\', '/', $this->argument('name'));
103+
104+
return collect(explode('/', $name))
103105
->map(function ($part) {
104106
return Str::kebab($part);
105107
})

0 commit comments

Comments
 (0)