From 0cd1e8029a44d329d3b418ff76a2bb6d5905d19d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Fri, 13 May 2022 18:11:40 +0200 Subject: [PATCH] fix install command --- src/Console/Commands/Install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/Commands/Install.php b/src/Console/Commands/Install.php index 099effab..1e512cd7 100644 --- a/src/Console/Commands/Install.php +++ b/src/Console/Commands/Install.php @@ -76,10 +76,10 @@ protected function registerRootServiceProvider(): void file_get_contents(app_path('Providers/RootServiceProvider.php')) )); - file_put_contents(app_path('Root/Resources/RootServiceProvider.php'), str_replace( + file_put_contents(app_path('Root/Resources/UserResource.php'), str_replace( "namespace App\\Root\\Resources;", "namespace {$namespace}\\Root\\Resources;", - file_get_contents(app_path('Root/Resources/RootServiceProvider.php')) + file_get_contents(app_path('Root/Resources/UserResource.php')) )); } }