Skip to content

Commit

Permalink
Fixed a livewire volt bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhansen committed Sep 25, 2024
1 parent 3f64c9d commit a6dc4cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/MakeView.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ public function handle()
$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');

$view_path = base_path('resources/views');
if($uses == 'volt') {
$view_uri = 'resources/views/livewire';
} else {
$view_uri = 'resources/views';
}
$view_path = base_path($view_uri);

$resource_files = ["index.{$suffix}", "create.{$suffix}", "show.{$suffix}", "edit.{$suffix}"];

Expand Down

0 comments on commit a6dc4cc

Please sign in to comment.