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
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
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.
Please or to participate in this conversation.