Skip to content

Commit 602731a

Browse files
committed
Move extension to $path
1 parent ecb5164 commit 602731a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Foundation/Console/ComponentMakeCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function handle()
5454
protected function writeView()
5555
{
5656
$path = $this->viewPath(
57-
str_replace('.', '/', 'components.'.$this->getView())
57+
str_replace('.', '/', 'components.'.$this->getView()).'.blade.php'
5858
);
5959

6060
if (! $this->files->isDirectory(dirname($path))) {
@@ -67,7 +67,7 @@ protected function writeView()
6767
}
6868

6969
file_put_contents(
70-
$path.'.blade.php',
70+
$path,
7171
'<div>
7272
<!-- '.Inspiring::quote().' -->
7373
</div>'

0 commit comments

Comments
 (0)