So, now I got this solution and it works :)
Video::whereHas('languages',function($query) { $query->whereIn('languages.name',$allowed); },">=",1)->first();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community