We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 907162e commit 6dc232dCopy full SHA for 6dc232d
src/InertiaJsPreset.php
@@ -56,9 +56,13 @@ protected static function updateGitignore()
56
57
protected static function scaffoldComponents()
58
{
59
- (new Filesystem)->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Shared', resource_path('js'));
+ tap(new Filesystem, function ($fs) {
60
+ $fs->deleteDirectory(resource_path('js/components'));
61
- (new Filesystem)->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Pages', resource_path('js'));
62
+ $fs->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Shared', resource_path('js/Shared'));
63
+
64
+ $fs->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Pages', resource_path('js/Pages'));
65
+ });
66
}
67
68
protected static function scaffoldRoutes()
0 commit comments