【发布时间】:2016-09-16 00:59:55
【问题描述】:
我可以使用 laravel 5 在 url 中使用动态 id 和公司名称吗,例如 我的网址是 http://beta.simplesign.se/12/textpress 12 和 textpress 可以是动态的我试过这个 Route::get('/{id}/{name}', function ($id, $name) {
Route::controller('/'.$id.'/'.$name.'/','onlinecontractController'); });
但这会在 ControllerInspector.php 中显示 ReflectionException
【问题讨论】:
标签: laravel url dynamic routes