Created
July 5, 2021 15:33
-
-
Save saitergun/2216415e52f16efd6f90033b83da58fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB::connection()->getPdo()->sqliteCreateFunction('REGEXP', 'preg_match', 2); | |
DB::table('tablename')->whereRaw('lower(tablecolumn) REGEXP "'.$regex.'"'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment