laravel scout search and where 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)