【发布时间】:2019-08-19 02:24:03
【问题描述】:
我想使用单击锚标记后得到的 URL accept_form/1 进行路由。
我的路线应该写什么?
我正在尝试这个:
Route::get('accept_form/{$id}', 'Controller@accept_form');
查看:
<a href="{{ url('accept_form/' . $key->id) }}" class="small-box-footer">
More info <i class="fa fa-arrow-circle-right"></i>
</a>
【问题讨论】:
-
分享你的代码而不是图片。
-
堆栈溢出语法标准不允许我这样做。
-
accept_form/{$id}应该是accept_form/{id}
标签: php laravel laravel-routing