update reference eloquent filter to small letters

This commit is contained in:
omair saleh
2021-10-21 12:42:13 +08:00
parent 073f89be12
commit c79f4cfdab
2 changed files with 2 additions and 2 deletions
@@ -14,7 +14,7 @@ class Reference implements Filter
*/
public static function apply(Builder $builder, $value)
{
return $builder->where('Reference', '=', $value);
return $builder->where('reference', '=', $value);
}
}
@@ -14,7 +14,7 @@ class ReferenceLike implements Filter
*/
public static function apply(Builder $builder, $value)
{
return $builder->where('Reference', 'LIKE', '%'.$value.'%');
return $builder->where('reference', 'LIKE', '%'.$value.'%');
}
}