Jho*_*lla 4 routes laravel-routing laravel-5
Laravel5 中有没有一种方法可以定义处理动态路由而不与当前静态路由冲突的路由?类似的东西如下:
// Dynamic routes
Route::get('{permalink}', function($permalink) {
//look for matching username on the table (bind perhaps?)
});
// Static routes
Route::get('home', 'HomeController@index');
Route::get('products', 'ProductController@index');
Run Code Online (Sandbox Code Playgroud)
伙计们,有什么想法吗?谢谢。
| 归档时间: |
|
| 查看次数: |
571 次 |
| 最近记录: |