Skip to content

Commit 907162e

Browse files
Scaffold the default Inertia.js view routes
1 parent 6987541 commit 907162e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/InertiaJsPreset.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public static function install()
1515
static::updateWelcomePage();
1616
static::updateGitignore();
1717
static::scaffoldComponents();
18+
static::scaffoldRoutes();
1819
static::removeNodeModules();
1920
}
2021

@@ -60,8 +61,8 @@ protected static function scaffoldComponents()
6061
(new Filesystem)->copyDirectory(__DIR__.'/inertiajs-stubs/resources/js/Pages', resource_path('js'));
6162
}
6263

63-
protected static function compileControllerStub()
64+
protected static function scaffoldRoutes()
6465
{
65-
//
66+
copy(__DIR__.'/inertiajs-stubs/routes/web.php', base_path('routes/web.php'));
6667
}
6768
}

0 commit comments

Comments
 (0)