diff --git a/src/MaddHatter/ViewGenerator/MakeViewCommand.php b/src/MaddHatter/ViewGenerator/MakeViewCommand.php index 92da5f3..b4f9de0 100644 --- a/src/MaddHatter/ViewGenerator/MakeViewCommand.php +++ b/src/MaddHatter/ViewGenerator/MakeViewCommand.php @@ -67,9 +67,8 @@ public function handle() $this->file->makeDirectory($directory, 0777, true); } - if ( ! $this->file->exists($path)) { - $this->file->put($path, $this->getViewContents()); - } + $this->file->put($path, $this->getViewContents()); + $this->info("Created a new view at {$path}"); } protected function getFilePath() @@ -109,6 +108,7 @@ private function getSections($parent) $sections = []; if ( ! $this->view->exists($parent)) { + $this->warn("Could not find view: {$parent}"); return $sections; }