2017-08-17 PostgreSQLで大文字小文字検索 「iLIKE」を使えば、PostgreSQLで大文字小文字関係なく検索できる。 Mymodel::where('name', 'iLIKE', $name)->first();