You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note: The third parameter (false) in the whereLike method makes the query case insensitive and the prefix/suffix % determine where the * should be placed. So "%final fantasy%" becomes *"final fantasy"* in your case.
Hi,
I am trying to generate the following result for a filter in a game query:
platforms = (18) & name ~ *"final fantasy"*;
I did this:
->where('platforms', '=', '('. $request->platform . ')')->where('name', '~', '*' . $request->game . '*')
But result was:
platforms = "(18)" & name ~ "*final fantasy*"
And did not work...
Could you help me achieve this result?
Regards.
The text was updated successfully, but these errors were encountered: