Skip to content

Commit 3b2a5d6

Browse files
committed
Fix MakeComponent command
1 parent ad5ba55 commit 3b2a5d6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/Commands/MakeComponent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Console\Command;
66
use Illuminate\Support\Facades\File;
77
use Illuminate\Support\Str;
8-
use Livewire\Features\SupportConsoleCommands\Commands\ComponentParser;
98
use Statamic\Console\RunsInPlease;
109
use Statamic\Facades\Form;
1110

@@ -39,7 +38,7 @@ public function handle(): void
3938

4039
$classNamespace = config('livewire.class_namespace');
4140
$className = Str::of($name)->endsWith('Form') ? $name : Str::of($name)->append('Form')->studly();
42-
$classPath = ComponentParser::generatePathFromNamespace($classNamespace).collect()->push("{$className}.php")->implode('/');
41+
$classPath = config('livewire.class_path', app_path('Livewire'))."/{$className}.php";
4342

4443
$stub = File::get(__DIR__.'/form.stub');
4544

0 commit comments

Comments
 (0)