title: laravel show request value none in query
body: <p>I want to filter some data using price but when we echo request value it give correct but when I put this in query it show &quot;?&quot;</p>
  <p><strong>my ajax call</strong></p>
  <pre><code>&lt;script&gt;
          $(document).ready(function() {
              $(&quot;#price_filter&quot;).on(&quot;change&quot;, function() {
                  var price = this .value;
                  var _token = $('input[name=&quot;_token&quot;]').val();
                  $.ajax({
                      url:&quot;{{ route('indexController.pricefilter') }}&quot;,
                      type:&quot;POST&quot;,
                      dataType:&quot;json&quot;,
                      data:{price,_token},
                      success: function(response){
                          console.log(response);
                          // $(&quot;#filterdata&quot;).html(response);
                      }
                  });
              })
          })  
  &lt;/script&gt;
  </code></pre>
  <p><strong>my route</strong></p>
  <pre><code>Route::post('indexController/pricefilter','indexController@pricefilter')-&gt;name('indexController.pricefilter');
  </code></pre>
  <p><strong>my function</strong></p>
  <pre><code>public function pricefilter(Request $request){
      echo $price = $request-&gt;get('price');
  
      return $products = DB::table('products')
          -&gt;where('price','=', $price)
          -&gt;tosql();
  }
  </code></pre>
  <p><strong>my query result</strong></p>
  <pre><code>400
  select * from `products` where `price` = ?
  </code></pre>
  <p><strong>it show actually like</strong></p>
  <pre><code>select * from `products` where `price` = 400
  </code></pre>
  <p><strong>Here is result</strong></p>
  <pre><code>array:1 [
    0 =&gt; array:3 [
      &quot;query&quot; =&gt; &quot;select * from `products` where `price` &lt;= ?&quot;
      &quot;bindings&quot; =&gt; array:1 [
        0 =&gt; &quot;1001&quot;
      ]
      &quot;time&quot; =&gt; 3.87
    ]
  ]
  </code></pre>