Add url segment to params
mjhcremer opened this issue · comments
Mario Cremer commented
How can I send Request::segment(2) as a param. I tried @asyncWidget('RecentEvents', {{ Request::segment(2) }}) but that doesn't work.
Nekrasov Ilya commented
$segment = Request::segment(2);
@asyncWidget('RecentEvents', ['segment' => $segment])