laravel search index 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)