diff --git a/routes/web.php b/routes/web.php index 2f7d3b9..6b8bdc7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -4,5 +4,8 @@ use Illuminate\Support\Facades\Route; require __DIR__.'/settings.php'; +// Named dashboard route so route('dashboard') resolves; Vue Router handles rendering +Route::get('/dashboard', fn () => view('app'))->middleware(['auth', 'verified'])->name('dashboard'); + // SPA catch-all — must be last -Route::get('/{any}', fn () => view('app'))->where('any', '.*')->name('home'); +Route::get('/{any?}', fn () => view('app'))->where('any', '.*')->name('home');