I can't find model by title #362
Answered
by
azamat-747
azamat-747
asked this question in
Q&A
-
Hi, I need find product by title but i can't get result. What is wrong? Can you help me? I already tried whereJsonContains, but result is same. |
Beta Was this translation helpful? Give feedback.
Answered by
azamat-747
Sep 10, 2023
Replies: 1 comment
-
I found a solution, I think it will be useful to someone:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
azamat-747
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a solution, I think it will be useful to someone:
$query->whereRaw("CAST(title AS CHAR) like ?", ["%{$request->search}%"]);