嗨大家:)我開發的形式,從用戶獲取數據和亞馬遜api搜索然後我想在另一個頁面顯示結果,我只是重定向到另一個頁面與我的結果參數,但我無法訪問我的新頁面參數,這裏是我的代碼laravel 5.2重定向到url參數
$search = new Search();
$search->setCategory('Books');
$search->setKeywords($searchItem);
$search->setPage(2);
$search->setResponseGroup(array('Large'));
$response = $apaiIO->runOperation($search);
$totalResult = $response['Items']['TotalResults'];
$totalPage = $response['Items']['TotalPages'];
$data = array(
'response' => $response,
'totalResult' => $totalResult,
'totalPage' => $totalPage,
'uni' => $unies,
);
return redirect('/searchItem')->with($data);
請幫我解決我的問題,謝謝:)