fix: make SPA catch-all param optional, add named dashboard route
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.3) (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled

This commit is contained in:
Ovidiu U
2026-04-10 18:17:49 +01:00
parent 6224dedd45
commit c6e65330b2

View File

@@ -4,5 +4,8 @@ use Illuminate\Support\Facades\Route;
require __DIR__.'/settings.php'; 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 // 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');