php - Case-insensitive distinct in laravel -
I was trying to list all the different values, create a column using Larvel. This code is
model :: different () -> gt; The lists ('Model_make_id') but this is case-sensitive. This Audi and detects Audi vary how to make case-insensitive?
Perhaps you can try such a raw query:
< Code> Model :: selectRaw ("Model UPPER (model_make_id) different as a model)" - & gt; Lists ( 'model') This will be the way Audi and Audi as once uppercase but perhaps a better way.
Comments
Post a Comment