where concat
carlituxman opened this issue · comments
carlituxman commented
Hi, how can I do a findwhere with concat
something like
select * from TABLE where concat( name, lastname, email ) like %misearch%
carlituxman commented
I answer me:
$q = $this->model->findWhere([
[DB::raw("CONCAT(name,lastname,lastname2)"), 'LIKE', "%$query%"]
]);