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

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -