I am getting each slider value in slide (Jquery Ui Slider) via Ajax to my Controller.
The Slider + Ajax looks like this:
$(\"#sliderNumCh\").slid
Your controller method should look like this:
public function editProductPost(Request $request)
{
return response()->json([
'sliderValue' => $request->get('value')
]);
}
You shouldn't be returning a view to a ajax request.
Your ajax success method should look like this (for example):
// first arg is the data returned by the controller method
success: function (response) {
console.log(response);
}
and it should ouput something like this:
{
'sliderValue': 4
}
Your route is named as editProductPost but you are searching for editProduct