First study the LIKE syntax:
https://dev.mysql.com/doc/refman/8.0/en/pattern-matching.html
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Please help me ? I have no idea :/
Below Query
MariaDB [realpropertydb]> select name from properties where postalCode LIKE 50000 OR province LIKE 50000 OR city LIKE 50000;
Image: https://prnt.sc/nif3qm
My solution doesn't work, as I want
my sloution: https://prnt.sc/niez9j
I fixed the query :P
})->whereHas('property',function($query) use ($keyword){
$query->where(function($query) use ($keyword){
$query->orwhere('postalCode', 'LIKE', $keyword)
->orWhere('province', 'LIKE', $keyword)
->orWhere('city', 'LIKE', $keyword);
});
Thanks <3
Please or to participate in this conversation.