Array( [0] => Array ( [name] => _token [value] => F87uTaTo3Zll4UbOBOpMHfLigwzT8IyWW71a92rZ ) [1] => Array ( [name] => reset [value] => 1 ) [2] => Array ( [name] => type_id [value] => 0 ) [3] => Array ( [name] => preset1 [value] => 0 ) [4] => Array ( [name] => preset2 [value] => 0 ) [5] => Array ( [name] => preset3 [value] => 0 ) [6] => Array ( [name] => preset4 [value] => 0 ) [7] => Array ( [name] => country [value] => 1 ) [8] => Array ( [name] => cohesive [value] => 0 ) [9] => Array ( [name] => manufacturers [value] => 1 ) [10] => Array ( [name] => country_id [value] => 3 ) [11] => Array ( [name] => min [value] => 0 ) [12] => Array ( [name] => max [value] => 200000 ))
Route::post("/loadmore", function(){
$inpust = Input::get("inputs");
$cols = array(
'type_id',
'country_id'
);
foreach ($inpust as $i) {
foreach($cols as $cl) {
if($i['name'] == $cl) {
$cl = $i['name'];
$cl_val = $i['value'];
echo $cl_val;
}
}
}
});
ну видимо запрос делает. Я думаю это не страшно всего-то 10 запросов, а остальное запросы не составляет а просто конструирует а отправляет после
квери билдер короче