Skip to content

Commit

Permalink
feat(operator): add operador ~* para consultar com case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielrassweiler committed Jun 20, 2022
1 parent 0d2ac9c commit d2da973
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Classes/Illuminate/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ private function checkOperatorAndType(string $operator, string $type)
'>=' => ['int', 'string', 'float', 'date', 'object', 'composition'],
'>' => ['int', 'string', 'float', 'date', 'object', 'composition'],
'!=' => ['int', 'string', 'float', 'date', 'bool', 'boolean'],
'~*' => ['string'],
];

return in_array($type, $operators[$operator] ?? []);
Expand Down

0 comments on commit d2da973

Please sign in to comment.