Skip to content

Commit

Permalink
fix install command
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed May 13, 2022
1 parent 00b5da7 commit 0cd1e80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
));
}
}

0 comments on commit 0cd1e80

Please sign in to comment.