wherehas laravel search
snippet in php

wherehas laravel search

user6610

                ->whereHas('translation', function ($query) use ($name){
                    $query->where('name', 'like', $name);
                }, '>=', 10)