@Abi
Thanks for your swift response. I took a look at it and I was a bit confused with it maybe how I would implement it in my code or maybe I do not fully understand pagination but if you will bear with me, here is a little snippet of my code so you could understand what I mean and maybe help me move forward:
My Route:
Route::get('/vehicles/search/{make}/{model}/{type}/{yearf}/{yeart}/{minp}/{maxp}', 'VehiclesController@searchVehicle');
My controller:
public function searchVehicle($make,$model,$type,$yearf,$yeart,$minp,$maxp){
$results = Vehicles::where('make', 'LIKE', '%'.$make. '%')->orWhere('model','LIKE', '%'.$model.'%')->paginate(2);
return($results);
}
Javascript:
var strUrl = vehicle_url + "search/" + vmake + "/" + vmodel + "/" + yearfrom + "/" + yearto + "/" + type + "/" + minprice + "/" + maxprice;
// prompt("test", strUrl);
var obj = sendRequest(strUrl);
So in the html it is the variable name -> links(); and would like to know how to update that in the JS