Skip to content

Commit 14389ed

Browse files
author
root
committed
added the wildcard route for vue router
1 parent 45a8d4c commit 14389ed

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed
File renamed without changes.

routes/web.php

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<?php
22

3-
/*
4-
|--------------------------------------------------------------------------
5-
| Web Routes
6-
|--------------------------------------------------------------------------
7-
|
8-
| Here is where you can register web routes for your application. These
9-
| routes are loaded by the RouteServiceProvider within a group which
10-
| contains the "web" middleware group. Now create something great!
11-
|
12-
*/
13-
14-
Route::get('/', function () {
15-
return view('welcome');
16-
});
3+
// We Will Use Vue Router Instead of Laravel Routing System
4+
Route::get('/{vue?}', function () {
5+
return view('app');
6+
})->where('vue', '[\/\w\.-]*')->name('app');

0 commit comments

Comments
 (0)