numberone's avatar

sqlite problem -(case sensitive)

I am using sqlite as db. But It seems it is case sensitive when i sort the db tables. How can I fix this ? I couldn't find anything that works with laravel.

thanks

0 likes
2 replies
spekkionu's avatar
Level 48

Both of these should work with raw sql.

ORDER BY column COLLATE NOCASE
ORDER BY LOWER(column)

I'm not sure if you can do this with Eloquent but you should be able to use DB::raw() with the query builder.

2 likes

Please or to participate in this conversation.