Skip to content

Commit

Permalink
Fixed more bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhansen committed Sep 25, 2024
1 parent bac4a69 commit c0b36bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/MakeView.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ public function handle()
]);
$empty = $this->option('empty') ?? confirm(label: 'Create an empty view?', default: false, yes: 'Yes', no: 'No');
$resourceful = $this->option('resourceful') ?? confirm(label: 'Create a resourceful set of child views?', default: false, yes: 'Yes', no: 'No');
$suffix = $this->option('suffix') ?? text(label: 'Provide a view suffix', placeholder: 'blade.php', default: 'blade.php');
} else {
$resourceful = false;
$empty = false;
$uses = null;
$suffix = 'blade.php';
}

$suffix = $this->option('suffix') ?? text(label: 'Provide a view suffix', placeholder: 'blade.php', default: 'blade.php');

if($volt) {
$view_uri = 'resources/views/livewire';
} else {
Expand Down

0 comments on commit c0b36bb

Please sign in to comment.