laravel:how to use LOWERCASE Function in Eloquent Query? laravel:how to use LOWERCASE Function in Eloquent Query? laravel laravel

laravel:how to use LOWERCASE Function in Eloquent Query?


Use LOWER()

$query->whereRaw('LOWER(`newsTitle`) LIKE ? ',[trim(strtolower($newsTitle)).'%']);