diff --git a/src/Commands/ComponentCommand.php b/src/Commands/ComponentCommand.php index 5571d82..4547e5e 100644 --- a/src/Commands/ComponentCommand.php +++ b/src/Commands/ComponentCommand.php @@ -46,7 +46,7 @@ class ComponentCommand extends Command file_put_contents($path, str_replace( "function boot()\n {", - "function boot()\n {\n \Airwire\Airwire::component('{$snake}', \App\Airwire\{$name}::class);", + "function boot()\n {\n \\Airwire\\Airwire::component('{$snake}', \\App\\Airwire\\{$name}::class);", file_get_contents($path) ));