Skip to content
This repository was archived by the owner on Apr 1, 2024. It is now read-only.

Commit 54e5318

Browse files
Fix issue with quotes
1 parent 2d1d08e commit 54e5318

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Macros/WhereFuzzy.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class WhereFuzzy
4040
**/
4141
public static function make(Builder $builder, $field, $value) : Builder
4242
{
43+
$value = str_replace(['"', "'", '`'], '', $value);
44+
4345
$native = '`' . str_replace('.', '`.`', trim($field, '` ')) . '`';
4446
$value = substr(DB::connection()->getPdo()->quote($value), 1, -1);
4547

0 commit comments

Comments
 (0)