Skip to content

Commit

Permalink
Move extension to $path
Browse files Browse the repository at this point in the history
  • Loading branch information
rojtjo committed Sep 16, 2020
1 parent ecb5164 commit 602731a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Console/ComponentMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function handle()
protected function writeView()
{
$path = $this->viewPath(
str_replace('.', '/', 'components.'.$this->getView())
str_replace('.', '/', 'components.'.$this->getView()).'.blade.php'
);

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

file_put_contents(
$path.'.blade.php',
$path,
'<div>
<!-- '.Inspiring::quote().' -->
</div>'
Expand Down

0 comments on commit 602731a

Please sign in to comment.