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.
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
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
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:
$members->whereBetween('fixed_price',[$request->price_from,$request->price_to]);
i know that i am doing it wrong but any help would be really appreciated.
thank you