title: Searching between two numbers(prices) in Laravel
body: <p>I'm trying to run an eloquent query to filter results by category, then title, then price. category and title work as they should but when i added BETWEEN for searching between two prices it broke. Does anyone know how i could fix my query?</p>
  
  <pre><code>@foreach(Inventory::where('category', '=', $cat)-&gt;where('title', 'LIKE', '%'. $search_query .'%')-&gt;where('price', 'BETWEEN', $min_price, 'AND', $max_price)-&gt;get() as $search_results)
  </code></pre>