1👍
✅
That any
route should be the last route entry in your router file.
Laravel routing honors top down registration of Routes, it will use the first match it finds.
If that any
wildcard entry is at the top of the Laravel router file then anything written after (below it) will be ignored.
Route::get('/example-1', 'HomeController@exampleOne'); // Will work
// If nothing else above this line matches then run Vue App
Route::get('/{any}', 'HomeController@index')->where('any', '.*');
// Anything written here will be ignored.
Route::get('/example-2', 'HomeController@exampleTwo') // Not work
👤Marc
Source:stackexchange.com