Does exist orWhere method in laravel-translatable? -


i use this library laravel translations

does exist orwheretranslationlike method in laravel-translatable?

when use 2 methods work logiclty , conditions:

$query->wheretranslationlike('title', '%' . $term . '%'); $query->wheretranslationlike('decs', '%' . $term . '%'); 

you can this:

$query->where(function($q) use($term) {     $q->wheretranslationlike('title', '%' . $term . '%'); })->orwhere(function($q) use($term) {     $q->wheretranslationlike('decs', '%' . $term . '%'); }); 

Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -