Skip to content

Commit bf64bdf

Browse files
authored
call route files from bootstrap/app.php
1 parent ca47e6e commit bf64bdf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

bootstrap/app.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
return Application::configure(basePath: dirname(__DIR__))
1010
->withRouting(
11-
web: __DIR__.'/../routes/web.php',
11+
web: [
12+
__DIR__.'/../routes/web.php',
13+
__DIR__.'/../routes/settings.php',
14+
__DIR__.'/../routes/auth.php',
15+
],
1216
commands: __DIR__.'/../routes/console.php',
1317
health: '/up',
1418
)

routes/web.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,3 @@
1010
Route::get('dashboard', function () {
1111
return Inertia::render('Dashboard');
1212
})->middleware(['auth', 'verified'])->name('dashboard');
13-
14-
require __DIR__.'/settings.php';
15-
require __DIR__.'/auth.php';

0 commit comments

Comments
 (0)