title: using WhereBetween on a column which have comma separated values in Laravel
body: <p>Thank you in advance if you will help me out. i am trying to use whereBetween clause and why i am using it, let me explain the issue below. </p>
  
  <p>i have multiple checkboxes for different services which are called treatments and user can select price from the price range slider which is fix price for that service, please see it here<a href="https://i.stack.imgur.com/jUhLQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jUhLQ.png" alt="here"></a></p>
  
  <p>and i am saving the records in database in 2 columns, one is treatments column and one is fixed_price column which i think is fine and i am saving it comma separated as you can see it in the below screenshots</p>
  
  <p><a href="https://i.stack.imgur.com/7e0AM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7e0AM.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/AZRHo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AZRHo.png" alt="enter image description here"></a></p>
  
  <p>now if someone is doing search then he will select one of the treatment service and then he will select price range From and To and then clicking on search so here is the reason i am using whereBetween Clause but i think i won't be successful in it. here is my code for the whereBetween clause:</p>
  
  <pre><code>$members-&gt;whereBetween('fixed_price',[$request-&gt;price_from,$request-&gt;price_to]);
  </code></pre>
  
  <p>i know that i am doing it wrong but any help would be really appreciated. </p>
  
  <p>thank you</p>