My question code is below,
{{ route('report.edit', array('id' => $report->uid, 'p_'.$param->name => $param->value, 'p_'.$param->name => $param->value))}}">
Output is: https://laracast.com/report/12/edit?p_paramname=paramvalue
But i have multiple parameters name and value, its not taking only last paramname and value is taking. If you print {{$param->name}} getting 2 param values.
That is just because you have the same keys
Look at this
'p_'.$param->name => $param->value, 'p_'.$param->name => $param->value
Just use the separate keys and this will fix your problem
For example Look at this
'p_1_'.$param->name => $param->value, 'p_2_'.$param->name => $param->value
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.