Simplify sqlite query

This commit is contained in:
Marcus Moore 2023-05-18 13:06:50 -07:00
parent d8d672c4c1
commit ffbde46180
No known key found for this signature in database

View file

@ -263,7 +263,7 @@ trait Searchable
$driver = config('database.connections.' . config('database.default') . '.driver');
if ($driver === 'sqlite') {
return implode(" || ' ' || ", $columns) . ' LIKE ?';
return implode("||' '||", $columns) . ' LIKE ?';
}
return 'CONCAT(' . implode('," ",', $columns) . ') LIKE ?';