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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -