File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public static function install()
13
13
static ::updatePackages ();
14
14
static ::updateBootstrapping ();
15
15
static ::updateWelcomePage ();
16
+ static ::updateGitignore ();
16
17
static ::scaffoldComponents ();
17
18
static ::removeNodeModules ();
18
19
}
@@ -43,6 +44,15 @@ protected static function updateWelcomePage()
43
44
copy (__DIR__ .'/inertiajs-stubs/resources/views/app.blade.php ' , resource_path ('views/app.blade.php ' ));
44
45
}
45
46
47
+ protected static function updateGitignore ()
48
+ {
49
+ file_put_contents (
50
+ base_path ('.gitignore ' ),
51
+ file_get_contents (__DIR__ .'/inertiajs-stubs/gitignore ' ),
52
+ FILE_APPEND
53
+ );
54
+ }
55
+
46
56
protected static function scaffoldComponents ()
47
57
{
48
58
(new Filesystem )->copyDirectory (__DIR__ .'/inertiajs-stubs/resources/js/Shared ' , resource_path ('js ' ));
You can’t perform that action at this time.
0 commit comments