wherehas with like search in laravel code example
Example: wherehas laravel search
->whereHas('translation', function ($query) use ($name){
$query->where('name', 'like', $name);
}, '>=', 10)
->whereHas('translation', function ($query) use ($name){
$query->where('name', 'like', $name);
}, '>=', 10)