diff --git a/src/MakeView.php b/src/MakeView.php index 6465554..0c1928b 100644 --- a/src/MakeView.php +++ b/src/MakeView.php @@ -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 {