📜  如何从 laravel 路由反应 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:24.591000             🧑  作者: Mango

代码示例3
You can return your index page and browserHistory of React will handle anything else.

Route::pattern('path', '[a-zA-Z0-9-/]+');
Route::any( '{path}', function( $page ){   
     return view('index');
});