在我的刀片中,我试图在动作链接中传递ID。从动作中获得通过ID
<a href="{{ action('[email protected]', $domain->id) }}">test</a>
我得到传入ID像这样在我的控制器:
public function edit()
{
$input = Input::get();
dd($input);
}
但DD的输出()是:
array:1 [▼
5 => ""
]
但为什么一个数组?我只想要数字,但我不明白为什么laravel将数组作为输入。
$ SEGMENT1 =支持::段(1);这里是参考http://laravel.io/forum/08-09-2014-get-url-segments-within-controller-index – Poria
好吧,这并没有帮助所有 – WellNo