From b146fc5756ba0d71ae07bd7042335970447b3dcc Mon Sep 17 00:00:00 2001 From: BJ Hansen Date: Mon, 25 Mar 2024 14:32:02 -0500 Subject: [PATCH] Used wrong variable name --- src/MakeView.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MakeView.php b/src/MakeView.php index 92f2b3e..1d14ea1 100644 --- a/src/MakeView.php +++ b/src/MakeView.php @@ -41,7 +41,7 @@ public function handle() $bootstrap = $this->option('bootstrap'); $empty = $this->option('empty'); - $view_path = resource_path('views'); + $view_path = base_path('resources/views'); // handle the actual file creation for the given blade view if(str_contains($viewname, '.')) { @@ -64,7 +64,7 @@ public function handle() } } - $full_view_path = "{$folder}/{$blade_file}"; + $full_view_path = "{$view_path}/{$blade_file}"; if(!file_exists($full_view_path)) { touch($full_view_path); } else {