Zamówienie laravel według przypadków niewrażliwy
//i had the same issue where i was fetching data with orderBy, on a column, which was of type BLOB.
//If you have same scenario, then to fix this issue ->
//create a new column with type TINYTEXT or TEXT. Run below query to update this new column value with previous BLOB type column value.
UPDATE IGNORE `shop` SET shop_name_new = shop_name
//IGNORE here skips all rows throwing errors, stopping this query to complete.
//Use this new column value to show in frontend.
//No need to use any special selectRaw or orderByRaw methods in query,
//as I tried them but no need now. Laravel automatically sorts it as case insensitive value.
Handsome Horse