When i m Send Ajax Request in my web Application then controller side it give me script in request parameter in laravel

前端 未结 1 1455
没有蜡笔的小新
没有蜡笔的小新 2021-01-23 19:16

When I\'m sending this ajax request:

 $.ajax({
   url: \"{{URL::to(\'admin/repcasetracker/getdiscount\')}}\",
   data: {
         


        
1条回答
  •  醉梦人生
    2021-01-23 19:52

    You need to use

    return $request->all();
    

    instead of

    dd($request->all());
    

    in your controller function. return $request->all(); just return the response with your $request data.

    Hope this helps you!

    0 讨论(0)
提交回复
热议问题