Skip to content

Commit

Permalink
Replaced classic Livewire views path from views.livewire to `config…
Browse files Browse the repository at this point in the history
…('livewire.view_path')`.
  • Loading branch information
hamzaelmaghari authored Nov 20, 2023
1 parent 962221e commit 3eeadf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/MakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function getPath($name): string
{
$paths = Volt::paths();

$mountPath = isset($paths[0]) ? $paths[0]->path : resource_path('views/livewire');
$mountPath = isset($paths[0]) ? $paths[0]->path : resource_path(config('livewire.view_path'));

return $mountPath.'/'.Str::lower(Str::finish($this->argument('name'), '.blade.php'));
}
Expand Down

0 comments on commit 3eeadf8

Please sign in to comment.