I have a table of areas, for example:
-----------------------------
id | name | level
-----------------------------
1 | India | country
2 | Some?thing | country
in this table, I added a line with a question mark , and I want to select this line as follows Request in eloquence:
Area::select(*)->where("name","LIKE", "%Some?thing%")
->where("level","=","country")->get();
but this does not give a result, because the question mark in the line where the condition is replaced by bindings
generated raw sql:
select * from area where name like %Somecountrything% AND level = ?
but I want it to look like
select * from area where name like %Some?thing% AND level = country
source
share