Skip to content

Commit

Permalink
Update ComponentMakeCommand.php (#43446)
Browse files Browse the repository at this point in the history
  • Loading branch information
sertxudev authored Jul 27, 2022
1 parent 603202f commit 22e3efc
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 @@ -92,7 +92,7 @@ protected function writeView($onSuccess = null)
file_put_contents(
$path,
'<div>
<!-- '.Inspiring::quote().' -->
<!-- '.Inspiring::quotes()->random().' -->
</div>'
);

Expand All @@ -112,7 +112,7 @@ protected function buildClass($name)
if ($this->option('inline')) {
return str_replace(
['DummyView', '{{ view }}'],
"<<<'blade'\n<div>\n <!-- ".Inspiring::quote()." -->\n</div>\nblade",
"<<<'blade'\n<div>\n <!-- ".Inspiring::quotes()->random()." -->\n</div>\nblade",
parent::buildClass($name)
);
}
Expand Down

0 comments on commit 22e3efc

Please sign in to comment.