You need to use whereHas()
->whereHas('user', function ($query) {
$query->where('permissions', '=', 7);
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community