fix: make SPA catch-all param optional, add named dashboard route
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user