Skip to content

Commit

Permalink
Used wrong variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhansen committed Mar 25, 2024
1 parent 5024c88 commit b146fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MakeView.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, '.')) {
Expand All @@ -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 {
Expand Down

0 comments on commit b146fc5

Please sign in to comment.