1
我需要将多个参数传递给Laravel 5中的重定向。我尝试了以下方法,但它给了我错误“HTTP状态码”1“无效。Laravel 5重定向::与多个参数
return Redirect::to('availability', array('date' => urlencode(Session::get('bookingFormData.date')), 'expired' => 'true'));
我的路线设置如下:
Route::get('availability', '[email protected]');
所以它不可能为我重新导向到像/上市日期= XYZ和过期=真 – V4n1ll4
当然,你可以使用http://php.net/manual/en/function.http? -build-str.php来追加它,或者看看Antonio的答案:http://stackoverflow.com/questions/25765874/how-to-redirect-a-named-route-with-querystring-in-laravel -4-2 –
所以我试着'返回Redirect :: route('availability',['test'=> 1]);'但仍然没有运气。现在它给了'Route [availability] not defined.' – V4n1ll4