From c0b36bbb90c7796c07145ebea166ad2af417d171 Mon Sep 17 00:00:00 2001 From: BJ Hansen Date: Tue, 24 Sep 2024 20:30:35 -0500 Subject: [PATCH] Fixed more bugs --- src/MakeView.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 {